Общие типы данных
Common types for TypeSafe API SDK.
Общие типы данных для 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
Значение в формате JSON. Может быть вложенным и содержать None.
typesafe\_sdk.JSONContent
module-attribute
Обычная строка либо словарь/последовательность элементов JSONValue.