MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / makeEnum

Function makeEnum

packages/types/src/utils/makeEnum.ts:1–5  ·  view source on GitHub ↗
(
  x: T
)

Source from the content-addressed store, hash-verified

1export function makeEnum<T extends { [index: string]: U }, U extends string>(
2 x: T
3) {
4 return x;
5}

Callers 7

roles.tsFile · 0.90
accounts.tsFile · 0.90
index.tsFile · 0.90
threads.tsFile · 0.90
channels.tsFile · 0.90
notification.tsFile · 0.90
messages.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected