Skip to content

Commit 1ecc8c1

Browse files
committed
Removed helper methods from basic-usage.ts
1 parent af75550 commit 1ecc8c1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Typescript/examples/basic-usage.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -246,26 +246,6 @@ export {
246246
runBasicExamples,
247247
};
248248

249-
// Helper functions for creating common objects
250-
export function createUserSubject(id: string, properties?: Record<string, any>): Subject {
251-
return { type: 'user', id, ...(properties && { properties }) };
252-
}
253-
254-
export function createDocumentResource(id: string, properties?: Record<string, any>): Resource {
255-
return { type: 'document', id, ...(properties && { properties }) };
256-
}
257-
258-
export function createAction(name: string, properties?: Record<string, any>): Action {
259-
return { name, ...(properties && { properties }) };
260-
}
261-
262-
export function createContextWithTimestamp(additionalContext?: Record<string, any>): Context {
263-
return {
264-
time: new Date().toISOString(),
265-
...additionalContext,
266-
};
267-
}
268-
269249
// Run examples if this file is executed directly
270250
if (require.main === module) {
271251
runBasicExamples().catch(console.error);

0 commit comments

Comments
 (0)