Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
11 lines
545 B
Plaintext
11 lines
545 B
Plaintext
import { JSONSchema, SchemaType } from './types/JSONSchema';
|
|
/**
|
|
* Duck types a JSONSchema schema or property to determine which kind of AST node to parse it into.
|
|
*
|
|
* Due to what some might say is an oversight in the JSON-Schema spec, a given schema may
|
|
* implicitly be an *intersection* of multiple JSON-Schema directives (ie. multiple TypeScript
|
|
* types). The spec leaves it up to implementations to decide what to do with this
|
|
* loosely-defined behavior.
|
|
*/
|
|
export declare function typesOfSchema(schema: JSONSchema): Set<SchemaType>;
|