Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 03ac715

Browse files
committed
Use easier way of importing core
Documentation update for codeoverflow-org/nodecg-io#163
1 parent 8b9683d commit 03ac715

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/contribute/create_sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Now you can create file called `extension/index.ts`. Here's a template. Make sur
4242

4343
```typescript
4444
import { NodeCG } from "nodecg/types/server";
45-
import { requireService } from "nodecg-io-core/extension/serviceClientWrapper";
45+
import { requireService } from "nodecg-io-core";
4646
import { TheServicesExportedClient } from "nodecg-io-<the services name>";
4747

4848
module.exports = function (nodecg: NodeCG) {

docs/contribute/create_service.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ Create a file called `index.ts` in a folder called `extension` inside your servi
8585
// TODO: Rename all occurences of "your-service-name" with only lowercase and hyphens ( - )
8686

8787
import { NodeCG } from "nodecg/types/server";
88-
import { emptySuccess, success, error, Result } from "nodecg-io-core/extension/utils/result";
89-
import { ServiceBundle } from "nodecg-io-core/extension/serviceBundle";
90-
import { ServiceClient } from "nodecg-io-core/extension/types";
88+
import { Result, emptySuccess, success, ServiceBundle, ServiceClient } from "nodecg-io-core";
9189
// TODO: Replace the "fake" service class with that found on npm etc.
9290
import { ServiceClass } from "./";
9391

0 commit comments

Comments
 (0)