feat: Add const typing for Language Names #797
Annotations
7 errors and 1 warning
build:
src/index.ts#L267
Argument of type 'string' is not assignable to parameter of type '"schema" | "go" | "typescript" | "javascript" | "js" | "jsx" | "cjson" | "cJSON" | "c++" | "cpp" | "cplusplus" | "crystal" | "cr" | "crystallang" | "cs" | "csharp" | "elm" | "dart" | ... 26 more ... | "typescript-zod"'.
|
build:
src/index.ts#L569
Argument of type 'readonly [CJSONTargetLanguage, CPlusPlusTargetLanguage, CrystalTargetLanguage, CSharpTargetLanguage, ... 21 more ..., TypeScriptZodTargetLanguage] | TargetLanguage<...>[]' is not assignable to parameter of type 'TargetLanguage<string, readonly string[], string>[]'.
|
build:
src/index.ts#L577
Argument of type 'string' is not assignable to parameter of type '"schema" | "go" | TargetLanguage<string, readonly string[], string> | "typescript" | "javascript" | "js" | "jsx" | "cjson" | "cJSON" | "c++" | "cpp" | "cplusplus" | "crystal" | ... 32 more ... | "typescript-zod"'.
|
build:
src/index.ts#L699
Argument of type 'string' is not assignable to parameter of type '"schema" | "go" | "typescript" | "javascript" | "js" | "jsx" | "cjson" | "cJSON" | "c++" | "cpp" | "cplusplus" | "crystal" | "cr" | "crystallang" | "cs" | "csharp" | "elm" | "dart" | ... 26 more ... | "typescript-zod"'.
|
build:
src/index.ts#L748
Argument of type 'readonly [CJSONTargetLanguage, CPlusPlusTargetLanguage, CrystalTargetLanguage, CSharpTargetLanguage, ... 21 more ..., TypeScriptZodTargetLanguage] | TargetLanguage<...>[]' is not assignable to parameter of type 'TargetLanguage<string, readonly string[], string>[]'.
|
build:
src/index.ts#L873
Argument of type 'string' is not assignable to parameter of type '"schema" | "go" | "typescript" | "javascript" | "js" | "jsx" | "cjson" | "cJSON" | "c++" | "cpp" | "cplusplus" | "crystal" | "cr" | "crystallang" | "cs" | "csharp" | "elm" | "dart" | ... 26 more ... | "typescript-zod"'.
|
build
Process completed with exit code 2.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|