fix(std/datetime):: 12 and 24 support (#7661)

This commit is contained in:
Tim Reichen 2020-09-25 00:06:22 +02:00 committed by GitHub
parent 82db91372f
commit 9c75e4876f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 147 additions and 58 deletions

View file

@ -4,12 +4,17 @@ export type Token = {
type: string;
value: string | number;
index: number;
[key: string]: unknown;
};
interface ReceiverResult {
[name: string]: string | number;
export interface ReceiverResult {
[name: string]: string | number | unknown;
}
export type CallbackResult = { type: string; value: string | number };
export type CallbackResult = {
type: string;
value: string | number;
[key: string]: unknown;
};
type CallbackFunction = (value: unknown) => CallbackResult;
export type TestResult = { value: unknown; length: number } | undefined;