Skip to content

Commit 2ef2eb0

Browse files
authored
Fix warnings and errors (#1363)
1 parent e4c27d2 commit 2ef2eb0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build/generate-style-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,12 @@ export type SchemaSpecification = {
389389
// State
390390
export type StateSpecification = Record<string, SchemaSpecification>;
391391
392-
export type FontFace = string | {
392+
export type MLFontFace = string | {
393393
url: string,
394394
"unicode-range"?: string[]
395395
};
396396
397-
export type FontFacesSpecification = Record<string, FontFace>;
397+
export type FontFacesSpecification = Record<string, MLFontFace>;
398398
399399
${objectDeclaration('StyleSpecification', spec.$root)}
400400

src/expression/expression.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('evaluate expression', () => {
138138
expect(value.kind).toBe('source');
139139

140140
expect(value.evaluate({} as GlobalProperties, {properties: {x: 'invalid'}} as any as Feature)).toBeNull();
141-
expect(console.warn).toHaveBeenCalledTimes(1);
141+
expect(console.warn).toHaveBeenCalledTimes(2);
142142
expect(console.warn).toHaveBeenCalledWith('Could not parse variableAnchorOffsetCollection from value \'invalid\'');
143143

144144
warnMock.mockClear();

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"allowJs": true,
4+
"outDir": "dist",
45
"allowSyntheticDefaultImports": true,
56
"checkJs": true,
67
"isolatedModules": false,

0 commit comments

Comments
 (0)