mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 10:21:55 +00:00
add some comments, bump to rc4
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
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) {}
|
||||
static of(value: Omit<PackagePropertyString, "type" | "watch">) {
|
||||
/**
|
||||
* Returns a new Property String with the provided options
|
||||
* @param value
|
||||
* @returns
|
||||
*/
|
||||
static of(value: Omit<PackagePropertyString, "type">) {
|
||||
return new PropertyString({
|
||||
...value,
|
||||
type: "string",
|
||||
|
||||
Reference in New Issue
Block a user