@versatiles/style
    Preparing search index...

    Function assertTileJSONSpecification

    • Validate an object against the TileJSON specification, throwing a descriptive error naming the offending field if it does not conform.

      Use isTileJSONSpecification when you want a boolean instead. These were one function whose spec is T signature promised a predicate but which threw for every invalid input, so if (isTileJSONSpecification(x)) blew up rather than branching.

      npm only. Not exported by the browser bundle (versatiles-style.js) — see the versatiles-style.js module for what that carries.

      Parameters

      • spec: unknown

      Returns asserts spec is TileJSONSpecification