Skip to content

Commit c3e5464

Browse files
committed
test: add TypeScript declaration file from nut-test
- Added src/lwrjs-api.d.ts with type declarations for @lwrjs/api - Declares SitesLocalDevOptions type and expDev/setupDev functions - Testing if this TypeScript declaration file causes @lwrjs/api module resolution issues in CI - This is the most likely culprit for the TS7016 error
1 parent 75bcca5 commit c3e5464

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/lwrjs-api.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025, 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+
declare module '@lwrjs/api' {
9+
export type SitesLocalDevOptions = {
10+
[key: string]: unknown;
11+
sfCLI?: boolean;
12+
authToken?: string;
13+
open?: boolean;
14+
port?: number;
15+
logLevel?: string;
16+
mode?: string;
17+
siteZip?: string;
18+
siteDir?: string;
19+
};
20+
21+
export function expDev(options: SitesLocalDevOptions): Promise<void>;
22+
export function setupDev(options: SitesLocalDevOptions): Promise<void>;
23+
}

0 commit comments

Comments
 (0)