From 91e606a5073225c6c468f154b58da961bfb8c1e2 Mon Sep 17 00:00:00 2001 From: Daniel Rodrigues Date: Sun, 13 Sep 2020 20:10:37 +0100 Subject: [PATCH 1/3] Add module declaration file --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..12c3892 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,8 @@ +import { Model } from 'objection'; + +interface Options { + field?: string; + generateGuid?: () => string | number; +} + +export default function(options?: Options): (ClassModel: T) => T; From 869f8f6f5ac7729ff4480ed8db9418880978376a Mon Sep 17 00:00:00 2001 From: Daniel Rodrigues Date: Thu, 3 Feb 2022 10:36:52 +0000 Subject: [PATCH 2/3] Add project types reference to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index e98bad3..b490830 100644 --- a/package.json +++ b/package.json @@ -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", From 4c9d5585eee99c48c2d18656701a31f16665dfa4 Mon Sep 17 00:00:00 2001 From: Daniel Rodrigues Date: Thu, 3 Feb 2022 14:20:34 +0000 Subject: [PATCH 3/3] Add .eslintignore file --- .eslintignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..5b29e15 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +**/*.d.ts