mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
21 lines
534 B
TypeScript
21 lines
534 B
TypeScript
import { PackagePropertyString } from "../types";
|
|
|
|
export class PropertyString<X extends PackagePropertyString> {
|
|
private constructor(readonly data: X) {}
|
|
static of(value: {
|
|
description?: string;
|
|
value: string;
|
|
/** Let's the ui make this copyable button */
|
|
copyable?: boolean;
|
|
/** Let the ui create a qr for this field */
|
|
qr?: boolean;
|
|
/** Hiding the value unless toggled off for field */
|
|
masked?: boolean;
|
|
}) {
|
|
return new PropertyString({
|
|
...value,
|
|
type: "string",
|
|
});
|
|
}
|
|
}
|