diff --git a/docs/classes/_decoder_.decoder.md b/docs/classes/_decoder_.decoder.md index 55192f5..0b41874 100644 --- a/docs/classes/_decoder_.decoder.md +++ b/docs/classes/_decoder_.decoder.md @@ -386,15 +386,19 @@ Note that `constant('string to match')` returns a `Decoder` which fails Providing the type parameter is only necessary for type-literal strings and numbers, as detailed by this table: - | Decoder | Type | - | ---------------------------- | ----------------- | - | constant(true) | Decoder | - | constant(false) | Decoder | - | constant(null) | Decoder | - | constant('alaska') | Decoder | - | constant<'alaska'>('alaska') | Decoder<'alaska'> | - | constant(50) | Decoder | - | constant<50>(50) | Decoder<50> | + | Decoder | Type | + | ---------------------------- | ---------------------| + | constant(true) | Decoder | + | constant(false) | Decoder | + | constant(null) | Decoder | + | constant('alaska') | Decoder | + | constant<'alaska'>('alaska') | Decoder<'alaska'> | + | constant(50) | Decoder | + | constant<50>(50) | Decoder<50> | + | constant([1,2,3]) | Decoder | + | constant<[1,2,3]>([1,2,3]) | Decoder<[1,2,3]> | + | constant({x: 't'}) | Decoder<{x: string}> | + | constant<{x: 't'}>({x: 't'}) | Decoder<{x: 't'}> | One place where this happens is when a type-literal is in an interface: