Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/generate-style-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ export type SchemaSpecification = {
// State
export type StateSpecification = Record<string, SchemaSpecification>;
export type FontFace = string | {
export type MLFontFace = string | {
url: string,
"unicode-range"?: string[]
};
export type FontFacesSpecification = Record<string, FontFace>;
export type FontFacesSpecification = Record<string, MLFontFace>;
${objectDeclaration('StyleSpecification', spec.$root)}
Expand Down
2 changes: 1 addition & 1 deletion src/expression/expression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('evaluate expression', () => {
expect(value.kind).toBe('source');

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

warnMock.mockClear();
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"outDir": "dist",
"allowSyntheticDefaultImports": true,
"checkJs": true,
"isolatedModules": false,
Expand Down
Loading