This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----タスク | |
1900年代であると仮定して、その時代に相応しいOKRを考えなさい | |
----タスクを下記のJSON Schemaに一致するJSON形式で回答しなさい | |
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Assistant Output", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Parser<T> = | |
T extends `%s${infer U}`? [string, ...Parser<U>] | |
: T extends `%d${infer U}` ? [number, ...Parser<U>] | |
: T extends `${string}${infer U}` ? Parser<U> | |
: []; | |
type Format = <T extends string>(str: T, ...params: Parser<T>) => string | |
const format: Format = (str, ...params) => str // WIP | |
format("$%d/%s", 5, "day") // $5/day | |
// ^? const format: <"$%d/%s">(str: "$%d/%s", params_0: number, params_1: string) => string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_newline = false | |
[git_status] | |
disabled = true |