add some comments, bump to rc4

This commit is contained in:
Matt Hill
2023-05-03 16:09:32 -06:00
parent 9a1dd5a399
commit 0ddd35c8d7
14 changed files with 127 additions and 43 deletions

View File

@@ -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",