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.
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 Tsignature promised a predicate but which threw for every invalid input, soif (isTileJSONSpecification(x))blew up rather than branching.npm only. Not exported by the browser bundle (
versatiles-style.js) — see theversatiles-style.jsmodule for what that carries.