mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
20 lines
470 B
TypeScript
20 lines
470 B
TypeScript
import { PackagePropertyString } from "../types"
|
|
|
|
/**
|
|
* A Property String is an arbitrary string value to display to the user
|
|
*/
|
|
export class PropertyString {
|
|
private constructor(readonly data: PackagePropertyString) {}
|
|
/**
|
|
* Returns a new Property String with the provided options
|
|
* @param value
|
|
* @returns
|
|
*/
|
|
static of(value: Omit<PackagePropertyString, "type">) {
|
|
return new PropertyString({
|
|
...value,
|
|
type: "string",
|
|
})
|
|
}
|
|
}
|