Skip to content

Commit 90342d8

Browse files
committed
fix: add TypeScript declarations for @lwrjs/api
1 parent 43e07f0 commit 90342d8

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) 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+
declare module '@lwrjs/api' {
9+
export type SitesLocalDevOptions = {
10+
sfCLI?: boolean;
11+
authToken?: string;
12+
open?: boolean;
13+
port?: number;
14+
logLevel?: string;
15+
mode?: string;
16+
siteZip?: string;
17+
siteDir?: string;
18+
};
19+
20+
export function expDev(options: SitesLocalDevOptions): Promise<void>;
21+
export function setupDev(options: SitesLocalDevOptions): Promise<void>;
22+
export function cmpDev(options: Record<string, unknown>): Promise<void>;
23+
}

0 commit comments

Comments
 (0)