types: { char: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; float32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Float32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; float64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Float64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; int16: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Int16: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; int32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Int32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; int64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Int64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; int8: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Int8: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; uint16: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Uint16: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; uint32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Uint32: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; uint64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Uint64: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; uint8: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; }; Uint8: { <V>( length: number, options?: Omit<FieldOptions, "length">, ): Decorator<V>; <V>(value: Target<V>, context: Context<V>): Result<V>; };} = ... Type declaration
char: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
float32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Float32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
float64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Float64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
int16: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Int16: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
int32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Int32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
int64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Int64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
int8: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Int8: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
uint16: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Uint16: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
uint32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Uint32: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
uint64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Uint64: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
uint8: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Uint8: {
<V>(
length: number,
options?: Omit<FieldOptions, "length">,
): Decorator<V>;
<V>(value: Target<V>, context: Context<V>): Result<V>;
}
Shortcuts for primitive types Instead of writing
@field(primitive.types[primitive.normalize(<type>)]), you can write@types.type. You can also use@types.type(length)for arrays.