@@ -126,30 +126,6 @@ interface DependenciesOptions {
126126 [ key : string ] : JSONSchema [ ]
127127}
128128export function withOptions < T > ( options : SchemaOptions ) : T
129- export function id < T > ( id : string ) : T
130- export function title < T > ( title : string ) : T
131- export function description < T > ( description : string ) : T
132- export function examples < T > ( examples : Array < any > ) : T
133- export function ref < T > ( ref : string ) : T
134- // FIXME enum is a reserved word
135- // export function enum<T>(values: Array<any>): T
136- // FIXME const is a reserved word
137- // export function constant<T>(value: any): T
138- export function required < T > ( ) : T
139- export function not < T > ( schema : JSONSchema ) : T
140- export function anyOf < T > ( schema : Array < JSONSchema > ) : T
141- export function allOf < T > ( schema : Array < JSONSchema > ) : T
142- export function oneOf < T > ( schema : Array < JSONSchema > ) : T
143- export function string ( ) : StringSchema & BaseSchema < StringSchema >
144- export function number ( ) : NumberSchema & BaseSchema < NumberSchema >
145- export function integer ( ) : IntegerSchema & BaseSchema < IntegerSchema >
146- export function boolean ( ) : BooleanSchema & BaseSchema < BooleanSchema >
147- export function array ( ) : ArraySchema & BaseSchema < ArraySchema >
148- export function object ( ) : ObjectSchema & BaseSchema < ObjectSchema >
149- // FIXME null is a reserved word
150- // export function null(): NullSchema & BaseSchema<NullSchema>
151- //FIXME LS we should return only a MixedSchema
152- export function mixed < T > ( types : TYPE [ ] ) : MixedSchema < T > & any
153129
154130export interface S extends BaseSchema < S > {
155131 string : ( ) => StringSchema
@@ -162,3 +138,6 @@ export interface S extends BaseSchema<S> {
162138 //FIXME LS we should return only a MixedSchema
163139 mixed : < T > ( types : TYPE [ ] ) => MixedSchema < T > & any
164140}
141+
142+ declare var s : S
143+ export default s
0 commit comments