We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Async handler using import
1 parent 64375d2 commit 39bd88dCopy full SHA for 39bd88d
imports/client.tsx
@@ -1575,6 +1575,14 @@ export class DeepClient<L extends Link<number> = Link<number>> implements DeepCl
1575
* @remarks
1576
* Is able to import CommoJS and ESModule libraries.
1577
* This is the recommended way to import from libraries in deep handlers
1578
+ *
1579
+ * @example
1580
+ * #### Async handler using import
1581
+ * ```
1582
+ * async ({deep}) => {
1583
+ * const importResult = await deep.import("my-lib-name");
1584
+ * }
1585
1586
*/
1587
async import(path: string) : Promise<any> {
1588
if (typeof DeepClient.resolveDependency !== 'undefined') {
0 commit comments