Common types¶
Common types for TypeSafe API SDK.
export function SdkSignature({children}) { async function copy(event) { const button = event.currentTarget; const code = button.parentElement.querySelector("pre code"); try { await navigator.clipboard.writeText(code.textContent); button.setAttribute("aria-label", "Signature copied"); button.dataset.copied = "true"; } catch { button.setAttribute("aria-label", "Copy failed; select the signature to copy"); } setTimeout(() => { button.setAttribute("aria-label", "Copy signature"); delete button.dataset.copied; }, 2000); } return
{children}
typesafe\_sdk.JSONValue
module-attribute
JSONValue = [TypeAliasType](https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.TypeAliasType)(\n \"JSONValue\",\n \"str | int | float | bool | Sequence[JSONValue | None] | Mapping[str, JSONValue | None]\",\n)\n
A JSON-like value. May be nested and contain None.
typesafe\_sdk.JSONContent
module-attribute
JSONContent = [TypeAliasType](https://typing-extensions.readthedocs.io/en/latest/index.html#typing_extensions.TypeAliasType)(\n \"JSONContent\",\n \"str | Mapping[str, JSONValue | None] | Sequence[JSONValue | None]\",\n)\n
Either a plain string or a mapping/sequence of JSONValue entries.