MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromLiteral

Function fromLiteral

packages/effect/src/unstable/http/HttpStatus.ts:100–100  ·  view source on GitHub ↗
(literal: L)

Source from the content-addressed store, hash-verified

98 * @since 4.0.0
99 */
100export const fromLiteral = <L extends Literal>(literal: L): (typeof codeByLiteral)[L] => codeByLiteral[literal]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected