@upstart.gg/sdk
Version:
You can test the CLI without recompiling by running:
25 lines (23 loc) • 510 B
JavaScript
import { Type } from "@sinclair/typebox";
//#region src/shared/bricks/props/date.ts
function date(title = "Date", options) {
return Type.String({
title,
format: "date",
"ui:field": "date",
examples: ["2023-03-15"],
...options
});
}
function datetime(title = "Date and Time", options) {
return Type.String({
title,
format: "date-time",
"ui:field": "datetime",
examples: ["2023-03-15T12:00:00Z"],
...options
});
}
//#endregion
export { date, datetime };
//# sourceMappingURL=date.js.map