Skip to content

Commit

Permalink
Merge pull request #29 from kratos-42/enhancement/module-declaration-…
Browse files Browse the repository at this point in the history
…file

Add module declaration file
  • Loading branch information
joaonice authored Feb 3, 2022
2 parents bb7da97 + 4c9d558 commit 7904ebc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.d.ts
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Model } from 'objection';

interface Options {
field?: string;
generateGuid?: () => string | number;
}

export default function(options?: Options): <T extends typeof Model>(ClassModel: T) => T;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"type": "git",
"url": "https://github.com/seegno/objection-guid.git"
},
"types": "index.d.ts",
"scripts": {
"changelog": "github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,4ba' -e 'P;D' CHANGELOG.md",
"cover": "jest --coverage --forceExit",
Expand Down

0 comments on commit 7904ebc

Please sign in to comment.