Skip to content

Commit

Permalink
fix typos (#56870)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolou86 committed Oct 18, 2023
1 parent 318cbbf commit b95474a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/auth-with-stytch/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stytch + Next.js example app on Vercel

This is a [Stytch](https://stytch.com) + [Next.js](https://nextjs.org/) project that showcases how to enable elegant authentication in your applicaiton.
This is a [Stytch](https://stytch.com) + [Next.js](https://nextjs.org/) project that showcases how to enable elegant authentication in your application.

<p align="center"><img src="./public/example-app-image.png" alt="stytch" width="50%"/></p>

Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/server/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export const createTSPlugin: tsModule.server.PluginModuleFactory = ({
if (metadataInfo) return metadataInfo
}

const overriden = entryConfig.getQuickInfoAtPosition(fileName, position)
if (overriden) return overriden
const overridden = entryConfig.getQuickInfoAtPosition(fileName, position)
if (overridden) return overridden

return prior
}
Expand Down
10 changes: 5 additions & 5 deletions packages/next/src/server/typescript/rules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const config = {
getQuickInfoAtPosition(fileName: string, position: number) {
const ts = getTs()

let overriden: tsModule.QuickInfo | undefined
let overridden: tsModule.QuickInfo | undefined
visitEntryConfig(fileName, position, (entryConfig, declaration) => {
if (!API_DOCS[entryConfig]) return

Expand All @@ -274,7 +274,7 @@ const config = {
: !!API_DOCS[entryConfig].options?.[key]

if (isValid) {
overriden = {
overridden = {
kind: ts.ScriptElementKind.enumElement,
kindModifiers: ts.ScriptElementKindModifier.none,
textSpan: {
Expand All @@ -295,7 +295,7 @@ const config = {
}
} else {
// Wrong value, display the docs link
overriden = {
overridden = {
kind: ts.ScriptElementKind.enumElement,
kindModifiers: ts.ScriptElementKindModifier.none,
textSpan: {
Expand All @@ -308,7 +308,7 @@ const config = {
}
} else {
// Hovers the name of the config
overriden = {
overridden = {
kind: ts.ScriptElementKind.enumElement,
kindModifiers: ts.ScriptElementKindModifier.none,
textSpan: {
Expand All @@ -326,7 +326,7 @@ const config = {
}
}
})
return overriden
return overridden
},

// Show details on the side when auto completing.
Expand Down
2 changes: 1 addition & 1 deletion packages/next/taskfile-swc.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = function (task) {
jsc: {
loose: true,
// Do not enable external helpers on server-side files build
// _is_native_funtion helper is not compatible with edge runtime (need investigate)
// _is_native_function helper is not compatible with edge runtime (need investigate)
externalHelpers: false,
parser: {
syntax: 'typescript',
Expand Down

0 comments on commit b95474a

Please sign in to comment.