Optimize schema #46
Annotations
5 errors and 10 warnings
|
test
Process completed with exit code 2.
|
|
test:
src/tools/style-comparison-tool/StyleComparisonTool.ts#L53
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
|
|
test:
src/tools/style-comparison-tool/StyleComparisonTool.ts#L52
Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
|
|
test:
src/tools/create-token-tool/CreateTokenTool.ts#L56
Type '("styles:tiles" | "styles:read" | "fonts:read" | "datasets:read" | "vision:read" | "scopes:list" | "map:read" | "map:write" | "user:read" | "user:write" | "uploads:read" | ... 20 more ... | "user-feedback:read")[] | undefined' is not assignable to type 'string[]'.
|
|
test:
src/tools/create-token-tool/CreateTokenTool.ts#L31
'input.scopes' is possibly 'undefined'.
|
|
test:
src/tools/delete-style-tool/DeleteStyleTool.ts#L20
Unexpected any. Specify a different type
|
|
test:
src/tools/create-style-tool/CreateStyleTool.ts#L20
Unexpected any. Specify a different type
|
|
test:
src/tools/coordinate-conversion-tool/CoordinateConversionTool.test.ts#L245
Unexpected any. Specify a different type
|
|
test:
src/tools/MapboxApiBasedTool.ts#L79
Unexpected any. Specify a different type
|
|
test:
src/tools/MapboxApiBasedTool.ts#L79
Unexpected any. Specify a different type
|
|
test:
src/tools/BaseTool.ts#L44
Unexpected any. Specify a different type
|
|
test:
src/tools/BaseTool.ts#L44
Unexpected any. Specify a different type
|
|
test:
src/config/toolConfig.ts#L50
Forbidden non-null assertion
|
|
test:
src/config/toolConfig.ts#L41
Forbidden non-null assertion
|
|
test:
src/config/toolConfig.test.ts#L166
Unexpected any. Specify a different type
|