Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
fix: proper types for example replicant in typescript output
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Van Camp committed Mar 24, 2023
1 parent 1803986 commit 7f2b72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/extension/templates/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (nodecg: NodeCG.ServerAPI) {
nodecg.log.info('Visit https://nodecg.dev for full documentation.');
nodecg.log.info('Good luck!');

const exampleReplicant = nodecg.Replicant<ExampleReplicant>('exampleReplicant');
const exampleReplicant = nodecg.Replicant('exampleReplicant') as unknown as NodeCG.ServerReplicantWithSchemaDefault<ExampleReplicant>;
setInterval(() => {
exampleReplicant.value.age++;
}, 5000);
Expand Down

0 comments on commit 7f2b72b

Please sign in to comment.