idb: don't import typeson
This commit is contained in:
parent
3a336799a0
commit
bc7956c2ba
@ -14,14 +14,8 @@
|
|||||||
permissions and limitations under the License.
|
permissions and limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import Typeson from "typeson";
|
|
||||||
// @ts-ignore
|
|
||||||
import structuredCloningThrowing from "typeson-registry/dist/presets/structured-cloning-throwing";
|
|
||||||
import { DataCloneError } from "./errors";
|
import { DataCloneError } from "./errors";
|
||||||
|
|
||||||
const TSON = new Typeson().register(structuredCloningThrowing);
|
|
||||||
|
|
||||||
const { toString: toStr } = {};
|
const { toString: toStr } = {};
|
||||||
const hasOwn = {}.hasOwnProperty;
|
const hasOwn = {}.hasOwnProperty;
|
||||||
const getProto = Object.getPrototypeOf;
|
const getProto = Object.getPrototypeOf;
|
||||||
|
Loading…
Reference in New Issue
Block a user