MCPcopy Create free account
hub / github.com/effect-app/libs / dateTimeUtcFromInput

Function dateTimeUtcFromInput

repos/effect/packages/effect/src/SchemaGetter.ts:1523–1531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1521 * const decode = SchemaGetter.decodeHex<string>()
1522 * const result = await Effect.runPromise(decode.run(Option.some("010203"), {}))
1523 * Option.map(result, Array.from) // => Option.some([1, 2, 3])
1524 * ```
1525 *
1526 * @see {@link decodeHexString} to decode to `string` instead
1527 * @see {@link encodeHex} for the inverse operation
1528 *
1529 * @category decoding
1530 * @since 4.0.0
1531 */
1532export function decodeHex<E extends string>(): Getter<Uint8Array, E> {
1533 return transformEffect((input, options) =>
1534 Result.match(Encoding.decodeHex(input), {

Callers

nothing calls this directly

Calls 5

someMethod · 0.80
transformOrFailFunction · 0.70
makeMethod · 0.65
failMethod · 0.45
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…