MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / create

Function create

packages/factory/src/create/index.ts:8–28  ·  view source on GitHub ↗
(
  name: string,
  options?: object
)

Source from the content-addressed store, hash-verified

6import createUser from './user';
7
8export default async function create(
9 name: string,
10 options?: object
11): Promise<any> {
12 switch (name) {
13 case 'account':
14 return createAccount(options);
15 case 'auth':
16 return createAuth(options);
17 case 'channel':
18 return createChannel(options);
19 case 'message':
20 return createMessage(options);
21 case 'thread':
22 return createThread(options);
23 case 'user':
24 return createUser(options);
25 default:
26 return Promise.reject(new Error(`Unknown factory name: ${name}`));
27 }
28}

Callers

nothing calls this directly

Calls 6

createAccountFunction · 0.85
createAuthFunction · 0.85
createChannelFunction · 0.70
createMessageFunction · 0.70
createThreadFunction · 0.70
createUserFunction · 0.70

Tested by

no test coverage detected