Skip to content

Commit 3e6fe6e

Browse files
committed
fix(typo) Fix various typos
1 parent 2be24fa commit 3e6fe6e

22 files changed

Lines changed: 44 additions & 44 deletions

File tree

dev-test/gatsby/schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15277,7 +15277,7 @@ type WpMediaItemMeta {
1527715277
iso: Int
1527815278

1527915279
"""
15280-
List of keywords used to describe or identfy the media item.
15280+
List of keywords used to describe or identify the media item.
1528115281
"""
1528215282
keywords: [String]
1528315283

@@ -20283,7 +20283,7 @@ type WpTaxonomy implements Node & WpNode {
2028320283
public: Boolean
2028420284

2028520285
"""
20286-
Name of content type to diplay in REST API "wp/v2" namespace.
20286+
Name of content type to display in REST API "wp/v2" namespace.
2028720287
"""
2028820288
restBase: String
2028920289

packages/graphql-codegen-cli/src/generate-and-save.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function generate(
7676
const currentHash = hash(content);
7777

7878
if (previousHash && currentHash === previousHash) {
79-
debugLog(`Skipping file (${result.filename}) writing due to indentical hash...`);
79+
debugLog(`Skipping file (${result.filename}) writing due to identical hash...`);
8080
return;
8181
}
8282

@@ -105,7 +105,7 @@ export async function generate(
105105
// compare the prettified content with the previous hash
106106
// to compare the content with an existing prettified file
107107
if (hash(content) === previousHash) {
108-
debugLog(`Skipping file (${result.filename}) writing due to indentical hash after prettier...`);
108+
debugLog(`Skipping file (${result.filename}) writing due to identical hash after prettier...`);
109109
// the modified content is NOT stored in recentOutputHash
110110
// so a diff can already be detected before executing the hook
111111
return;

packages/graphql-codegen-cli/src/utils/patterns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const makeShouldRebuild = ({
5151
return (path: string) => {
5252
// Is path negated by any negating watch pattern?
5353
if (matchesAnyNegatedPattern(path, [...globalPatternSet.watch.negated, ...localPatternSet.watch.negated])) {
54-
// Short circut: negations in watch patterns take priority
54+
// Short circuit: negations in watch patterns take priority
5555
return false;
5656
}
5757

@@ -134,7 +134,7 @@ export const makeGlobalPatternSet = (initialContext: CodegenContext) => {
134134
*
135135
* In the `shouldRebuild` algorithm, any of these watch patterns will take
136136
* precedence over documents or schemas patterns, and the documents and schemas
137-
* patterns will be mixed into the pattern set of their respective gobal pattern
137+
* patterns will be mixed into the pattern set of their respective global pattern
138138
* set equivalents.
139139
*/
140140
export const makeLocalPatternSet = (conf: Types.ConfiguredOutput) => {

packages/graphql-codegen-cli/tests/watcher-test-helpers/assert-watcher-build-triggers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const assertBuildTriggers = async (
8989
*
9090
* This assertion helper will look for an **exact match** of each string
9191
* in this array. Any relative globs should be specified relative from the
92-
* `watchDirectory`, because this asertion helper will not attempt to convert
92+
* `watchDirectory`, because this assertion helper will not attempt to convert
9393
* them (unlike with {@link pathsWouldBeIgnoredByParcelWatcher}).
9494
*
9595
* For each string in this array:

packages/graphql-codegen-cli/tests/watcher.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ describe('Watch targets', () => {
752752
'./fuzz/some-other-bar/schemas/never-watch-schema.graphql', // excluded by local watchPattern group
753753
//
754754
// globally negated paths should be excluded even when a local pattern matches them
755-
'./fuzz/alphabet/queries/exclude-watch-everywhere.graphql', // included in types-no-sigma.ts, but globaly excluded
755+
'./fuzz/alphabet/queries/exclude-watch-everywhere.graphql', // included in types-no-sigma.ts, but globally excluded
756756
'fuzz/global-beats-local/exclude-watch-everywhere.graphql',
757757
'fuzz/global-beats-local/exclude-doc-everywhere.graphql',
758758
'fuzz/global-beats-local/exclude-schema-everywhere.graphql',

packages/plugins/other/visitor-plugin-common/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
563563
This is extending on `ResolversUnionTypes` implemented in https://github.com/dotansimha/graphql-code-generator/pull/9069
564564
565-
`resolversNonOptionalTypename` adds non-optional `__typename` to union members of `ResolversUnionTypes`, without affecting the union members' base intefaces.
565+
`resolversNonOptionalTypename` adds non-optional `__typename` to union members of `ResolversUnionTypes`, without affecting the union members' base interfaces.
566566
567567
A common use case for non-optional `__typename` of union members is using it as the common field to work out the final schema type. This makes implementing the union's `__resolveType` very simple as we can use `__typename` to decide which union member the resolved object is. Without this, we have to check the existence of field/s on the incoming object which could be verbose.
568568

packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ export class BaseResolversVisitor<
11331133
const members = memberTypes
11341134
.map(type => {
11351135
const isTypeMapped = this.config.mappers[type.name];
1136-
// 1. If mapped without placehoder, just use it without doing extra checks
1136+
// 1. If mapped without placeholder, just use it without doing extra checks
11371137
if (isTypeMapped && !hasPlaceholder(isTypeMapped.type)) {
11381138
return { typename: type.name, typeValue: isTypeMapped.type };
11391139
}

packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class BaseTypesVisitor<
530530
...additionalConfig,
531531
});
532532

533-
// Note: Missing directive mappers but not a problem since always overriden by implementors
533+
// Note: Missing directive mappers but not a problem since always overridden by implementers
534534
this._argumentsTransformer = new OperationVariablesToObject(this.scalars, this.convertName);
535535
}
536536

packages/plugins/other/visitor-plugin-common/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type NormalizedScalarsMap = {
2828
};
2929
/**
3030
* Parsed scalars map - a mapping between GraphQL scalar name and the parsed mapper object,
31-
* including all required information for generting code for that mapping.
31+
* including all required information for generating code for that mapping.
3232
*/
3333
export type ParsedScalarsMap = {
3434
[name: string]: {
@@ -45,7 +45,7 @@ export type EnumValuesMap<AdditionalProps = {}> =
4545
| { [enumName: string]: string | ({ [key: string]: string | number } & AdditionalProps) };
4646
export type ParsedEnumValuesMap = {
4747
[enumName: string]: {
48-
// If values are explictly set, this will include the mapped values
48+
// If values are explicitly set, this will include the mapped values
4949
mappedValues?: { [valueName: string]: string | number };
5050
// The GraphQL enum name
5151
typeIdentifier: string;
@@ -55,7 +55,7 @@ export type ParsedEnumValuesMap = {
5555
sourceFile?: string;
5656
// If the identifier is external (imported) - this will contain the imported expression (including alias), otherwise null
5757
importIdentifier?: string;
58-
// Is defualt import is used to import the enum
58+
// Is default import is used to import the enum
5959
isDefault?: boolean;
6060
};
6161
};

packages/plugins/typescript/document-nodes/tests/graphql-document-nodes.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('graphql-codegen typescript-graphql-document-nodes', () => {
3131
validateTs(mergeOutputs([result]));
3232
});
3333

34-
it('Should generate correctly for mutiple files', async () => {
34+
it('Should generate correctly for multiple files', async () => {
3535
const result = (await plugin(
3636
null,
3737
[

0 commit comments

Comments
 (0)