remix-typedjson
Version:
This package is a replacement for superjson to use in your Remix app. It handles a subset of types that `superjson` supports, but is faster and smaller.
5 lines (4 loc) • 513 B
TypeScript
export { TypedAwait, deserializeRemix, redirect, stringifyRemix, typeddefer, typedjson, useTypedActionData, useTypedFetcher, useTypedLoaderData, useTypedRouteLoaderData, } from './remix';
export type { RemixSerializedType, TypedAwaitProps, TypedFetcherWithComponents, TypedJsonResponse, TypedMetaFunction, UseDataFunctionReturn, } from './remix';
export { applyMeta, deserialize, parse, registerCustomType, serialize, stringify, } from './typedjson';
export type { MetaType, TypedJsonResult } from './typedjson';