Skip to content

Commit

Permalink
Add simple fluent-schema.d.ts #13
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutlo committed Dec 12, 2018
1 parent 9680c16 commit fcc5b1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fluent-schema.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare module "fluent-schema" {

function FluentSchema(opt?:SchemaOptions): FluentSchema

interface SchemaOptions {
schema: object,
generateIds: boolean
}

interface FluentSchema {
prop: (name: string, props?: object) => FluentSchema
}

export { FluentSchema };
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.3.0",
"description": "JSON Schema fluent API",
"main": "src/FluentSchema.js",
"typings": "fluent-schema.d.ts",
"keywords": [
"JSON",
"schema",
Expand Down

0 comments on commit fcc5b1e

Please sign in to comment.