Skip to content

Commit 8a811e7

Browse files
committed
fix: add TypeScript declaration for @lwrjs/api
1 parent 5de2822 commit 8a811e7

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/lwrjs-api.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2023, salesforce.com, inc.
3+
* All rights reserved.
4+
* Licensed under the BSD 3-Clause license.
5+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6+
*/
7+
8+
/* eslint-disable */
9+
declare module '@lwrjs/api' {
10+
export * from '@lwrjs/api/build/es/index.js';
11+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"skipLibCheck": true,
77
"baseUrl": "."
88
},
9-
"include": ["./src/**/*.ts"]
9+
"include": ["./src/**/*.ts", "./src/**/*.d.ts"]
1010
}

0 commit comments

Comments
 (0)