API Reference
@univerjs
@univerjs/core
namespaces
JSON1
type-aliases
Doc

@univerjs/core v0.1.17Docs


Type Alias: Doc

type Doc: 
  | null
  | boolean
  | number
  | string
  | Doc[]
| {};

JSON documents must be able to round-trip through JSON.stringify / JSON.parse. So this means they can't contain:

  • undefined
  • Circular references
  • Objects of classes
  • Functions
  • Sets, Maps, Dates, DOM nodes, etc

Defined in

submodules/univer/node_modules/.pnpm/ot-json1@1.0.2/node_modules/ot-json1/dist/types.d.ts:63


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.