diff --git a/examples/concepts/node-client/src/client.ts b/examples/concepts/node-client/src/client.ts index f203a17b..7975ee2e 100644 --- a/examples/concepts/node-client/src/client.ts +++ b/examples/concepts/node-client/src/client.ts @@ -1,9 +1,11 @@ -import { startClient } from 'jitar'; +import { startClient, Import } from 'jitar'; const client = await startClient('http://127.0.0.1:3000', ['client']); -const { default: getLuckyNumber } = await client.import('./getLuckyNumber', 'application') as any; +const importModel = new Import('client', './getLuckyNumber', 'application'); + +const { default: getLuckyNumber } = await client.import(importModel) as any; const number = await getLuckyNumber(0, 100);