From 560088bf1f7cfee31bcb795f6dccc2fd18dfc730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 6 Nov 2024 14:57:23 +0100 Subject: [PATCH 1/2] Generate passwordless.d.ts types --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 85853f8..5e86d24 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -54,10 +54,10 @@ export default [ ] }, { - input: 'src/types.ts', + input: 'src/passwordless.ts', plugins: [dts()], output: { - file: 'dist/types.d.ts' + file: 'dist/passwordless.d.ts' } } ]; From d8461ea7262d873c90011eec1546de83667c62e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 6 Nov 2024 15:13:11 +0100 Subject: [PATCH 2/2] re-export the types --- src/passwordless.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/passwordless.ts b/src/passwordless.ts index cd78290..7eb136c 100644 --- a/src/passwordless.ts +++ b/src/passwordless.ts @@ -8,6 +8,8 @@ import { TokenResponse } from './types'; +export * from './types'; + export interface Config { apiUrl: string; apiKey: string;