API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classJsonFactory
@codexo/exojs / resources / stable
AssetFactory implementation that parses JSON files and exposes them as plain JavaScript values. The parsed value is typed as `unknown`; callers are expected to narrow or cast the result to their specific schema type.
1
props
5
methods
0
events
Import
import { JsonFactory } from '@codexo/exojs' AssetFactory implementation that parses JSON files and exposes them as plain JavaScript values.
The parsed value is typed as `unknown`; callers are expected to narrow or cast the result to their specific schema type.
Constructors 1
new(): JsonFactory Methods 5
create(source: unknown): Promise<unknown> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<unknown> revokeObjectUrl(objectUrl: string): void Properties 1
storageName: "json" Source