mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
Merge pull request #13 from Start9Labs/feat/properties-metadata
add metadata to exported values for display in properties
This commit is contained in:
15
lib/types.ts
15
lib/types.ts
@@ -201,16 +201,23 @@ export type ExposeAllUiPaths<Store, PreviousPath extends string = ""> =
|
|||||||
Store extends string ? PreviousPath :
|
Store extends string ? PreviousPath :
|
||||||
never
|
never
|
||||||
export type ExposeServicePaths<Store> = Array<{
|
export type ExposeServicePaths<Store> = Array<{
|
||||||
/** Sets the value for the wrapper at the path, it will override, using the [JsonPath](https://jsonpath.com/) */
|
/** The path to the value in the Store. [JsonPath](https://jsonpath.com/) */
|
||||||
path: ExposeAllServicePaths<Store>
|
path: ExposeAllServicePaths<Store>
|
||||||
}>
|
}>
|
||||||
|
|
||||||
export type ExposeUiPaths<Store> = Array<{
|
export type ExposeUiPaths<Store> = Array<{
|
||||||
/** Sets the value for the wrapper at the path, it will override, using the [JsonPath](https://jsonpath.com/) */
|
/** The path to the value in the Store. [JsonPath](https://jsonpath.com/) */
|
||||||
path: ExposeAllUiPaths<Store>
|
path: ExposeAllUiPaths<Store>
|
||||||
|
/** A human readable title for the value */
|
||||||
/** This will be the title for the value field that is returned */
|
|
||||||
title: string
|
title: string
|
||||||
|
/** A human readable description or explanation of the value */
|
||||||
|
description?: string
|
||||||
|
/** (string/number only) Whether or not to mask the value, for example, when displaying a password */
|
||||||
|
masked?: boolean
|
||||||
|
/** (string/number only) Whether or not to include a button for copying the value to clipboard */
|
||||||
|
copyable?: boolean
|
||||||
|
/** (string/number only) Whether or not to include a button for displaying the value as a QR code */
|
||||||
|
qr?: boolean
|
||||||
}>
|
}>
|
||||||
/** Used to reach out from the pure js runtime */
|
/** Used to reach out from the pure js runtime */
|
||||||
export type Effects = {
|
export type Effects = {
|
||||||
|
|||||||
Reference in New Issue
Block a user