UNPKG

@space-cow-media/spellbook-client

Version:

An Open Api generated client for the Commander Spellbook backend REST API.

59 lines (45 loc) 1.23 kB
# VariantLegalities ## Properties Name | Type ------------ | ------------- `commander` | boolean `pauperCommanderMain` | boolean `pauperCommander` | boolean `oathbreaker` | boolean `predh` | boolean `brawl` | boolean `vintage` | boolean `legacy` | boolean `premodern` | boolean `modern` | boolean `pioneer` | boolean `standard` | boolean `pauper` | boolean ## Example ```typescript import type { VariantLegalities } from '' // TODO: Update the object below with actual values const example = { "commander": null, "pauperCommanderMain": null, "pauperCommander": null, "oathbreaker": null, "predh": null, "brawl": null, "vintage": null, "legacy": null, "premodern": null, "modern": null, "pioneer": null, "standard": null, "pauper": null, } satisfies VariantLegalities console.log(example) // Convert the instance to a JSON string const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object const exampleParsed = JSON.parse(exampleJSON) as VariantLegalities console.log(exampleParsed) ``` [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)