Skip to content

Instantly share code, notes, and snippets.

View flofehrenbacher's full-sized avatar

Florian Fehrenbacher flofehrenbacher

  • Süddeutsche Zeitung Digitale Medien GmbH
  • Munich
View GitHub Profile
import { z, ZodTypeAny, ZodUnion } from 'zod'
/**
* Zod helper for parsing arrays and ignore items not specified in the schema
*
* @param zodUnion - union of known types
*
* @example
* const binaryArraySchema = arrayIgnoreUnknown(z.union([z.literal('0'), z.literal('1')]))
* type BinaryArray = z.TypeOf<typeof binaryArraySchema>
const gameMachine = Machine(
{
strict: true,
id: 'game',
context: {
currentPlayerId: '',
players: [],
stack: [],
order: [],
gamePlayed: null,
<urlset>
<url>
<loc>https://gumbauern-alpakas.de/alpakawanderung/</loc>
</url>
<url>
<loc>https://gumbauern-alpakas.de/datenschutz/</loc>
</url>
<url>
<loc>https://gumbauern-alpakas.de/impressum/</loc>
</url>
{
"Ansi 7 Color" : {
"Green Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527
},
"Tags" : [
],
"Ansi 12 Color" : {