Skip to content

Commit

Permalink
feat: export types for index
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 23, 2021
1 parent 6ce7565 commit 0d255c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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": "1.0.0",
"description": "IPLD Schema parser and CLI utilities for JavaScript",
"main": "./ipld-schema.js",
"types": "./types.d.ts",
"scripts": {
"peg": "npm_config_yes=true npx pegjs -o parser.js ipld-schema.pegjs",
"lint": "standard *.js test/*.js bin/*.js",
Expand Down
3 changes: 3 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Schema } from './schema-schema'

export function parse(schemaText: string): Schema

0 comments on commit 0d255c6

Please sign in to comment.