UNPKG

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.

22 lines (21 loc) 2.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stringify = exports.serialize = exports.registerCustomType = exports.parse = exports.deserialize = exports.applyMeta = exports.useTypedRouteLoaderData = exports.useTypedLoaderData = exports.useTypedFetcher = exports.useTypedActionData = exports.typedjson = exports.typeddefer = exports.stringifyRemix = exports.redirect = exports.deserializeRemix = exports.TypedAwait = void 0; var remix_1 = require("./remix"); Object.defineProperty(exports, "TypedAwait", { enumerable: true, get: function () { return remix_1.TypedAwait; } }); Object.defineProperty(exports, "deserializeRemix", { enumerable: true, get: function () { return remix_1.deserializeRemix; } }); Object.defineProperty(exports, "redirect", { enumerable: true, get: function () { return remix_1.redirect; } }); Object.defineProperty(exports, "stringifyRemix", { enumerable: true, get: function () { return remix_1.stringifyRemix; } }); Object.defineProperty(exports, "typeddefer", { enumerable: true, get: function () { return remix_1.typeddefer; } }); Object.defineProperty(exports, "typedjson", { enumerable: true, get: function () { return remix_1.typedjson; } }); Object.defineProperty(exports, "useTypedActionData", { enumerable: true, get: function () { return remix_1.useTypedActionData; } }); Object.defineProperty(exports, "useTypedFetcher", { enumerable: true, get: function () { return remix_1.useTypedFetcher; } }); Object.defineProperty(exports, "useTypedLoaderData", { enumerable: true, get: function () { return remix_1.useTypedLoaderData; } }); Object.defineProperty(exports, "useTypedRouteLoaderData", { enumerable: true, get: function () { return remix_1.useTypedRouteLoaderData; } }); var typedjson_1 = require("./typedjson"); Object.defineProperty(exports, "applyMeta", { enumerable: true, get: function () { return typedjson_1.applyMeta; } }); Object.defineProperty(exports, "deserialize", { enumerable: true, get: function () { return typedjson_1.deserialize; } }); Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return typedjson_1.parse; } }); Object.defineProperty(exports, "registerCustomType", { enumerable: true, get: function () { return typedjson_1.registerCustomType; } }); Object.defineProperty(exports, "serialize", { enumerable: true, get: function () { return typedjson_1.serialize; } }); Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return typedjson_1.stringify; } });