@mapbox/mapbox-gl-style-spec 14.1.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ import type {ValidationOptions} from './validate.js';
9
9
  import type {StyleSpecification} from '../types.js';
10
10
 
11
11
  type StyleValidationOptions = {
12
- key?: ValidationOptions["key"]
12
+ key?: $PropertyType<ValidationOptions, 'key'>
13
13
  }
14
14
 
15
15
  export default function validateStyle(style: StyleSpecification, styleSpec: Object = latestStyleSpec, options: StyleValidationOptions = {}): ValidationError[] {
@@ -1,16 +0,0 @@
1
- // @flow strict
2
-
3
- declare module "jsdom" {
4
- declare class JSDOM {
5
- constructor(content: string, options: Object): JSDOM;
6
- window: WindowProxy;
7
- }
8
- declare class VirtualConsole {
9
- constructor(): VirtualConsole;
10
- sendTo(console: typeof console): VirtualConsole;
11
- }
12
- declare module.exports: {
13
- JSDOM: typeof JSDOM,
14
- VirtualConsole: typeof VirtualConsole
15
- };
16
- }
@@ -1,29 +0,0 @@
1
- // @flow strict
2
- declare module "sinon" {
3
- declare type SpyCall = {
4
- args: Array<mixed>
5
- };
6
- declare type Spy = {
7
- (): any,
8
- calledOnce: number,
9
- getCall(i: number): SpyCall
10
- };
11
- declare type Stub = {
12
- returns(fn: mixed): Spy,
13
- callsFake(fn: mixed): Spy
14
- };
15
- declare class FakeServer {
16
- xhr: XMLHttpRequest
17
- }
18
- declare type Sandbox = {
19
- xhr: {supportsCORS: boolean},
20
- fakeServer: {create: () => FakeServer},
21
-
22
- createSandbox(options: mixed): Sandbox,
23
- stub(obj?: mixed, prop?: string): Stub,
24
- spy(obj?: mixed, prop?: string): Spy,
25
- restore(): void;
26
- };
27
-
28
- declare module.exports: Sandbox;
29
- }