Skip to content

add mergestring to context type #4931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions apps/platform-integration-tests/generated/@types/@uesio/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,12 +710,29 @@ type Context = {
* @returns new Context object
*/
addSignalOutputFrame: (label: string, data: unknown) => Context
/**
* Merges a template containing merge syntax, e.g. ${uesio/core.uniquekey} in the current context.
* If the template specified is not a string or does not contain any merge syntax, the template
* is returned as-is.
* @param template - the template to be merged
* @returns the merged result
*/
merge: (text: string) => string
/**
* Merges a text string containing merges, e.g. ${uesio/core.uniquekey} in the current context
* @param text - the text to be merged
* @returns the merged text
* Merges a template containing merge syntax, e.g. ${uesio/core.uniquekey} in the current context
* with the result coerced in to a string. If the template specified is not a string or does not contain
* any merge syntax, the value returned is the template coerced to a string.
* @param template - the template to be merged
* @returns the merged result as a string
*/
mergeString: (template: Mergeable) => string
/**
* Merges a template containing merge syntax, e.g. ${uesio/core.uniquekey} in the current context
* with the result coerced in to a string. If the template specified is not a string or does not contain
* any merge syntax, the value returned is the template coerced to a string.
* @param template - the template to be merged
* @returns the merged result as a string
*/
merge: (text: string) => string
/**
* Returns an array of errors that are part of the current context
* @returns Array of error strings
Expand Down
16 changes: 13 additions & 3 deletions libs/ui/src/public_types/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,21 @@ type Context = {
*/
addSignalOutputFrame: (label: string, data: unknown) => Context
/**
* Merges a text string containing merges, e.g. ${uesio/core.uniquekey} in the current context
* @param text - the text to be merged
* @returns the merged text
* Merges a template containing merge syntax, e.g. ${uesio/core.uniquekey} in the current context.
* If the template specified is not a string or does not contain any merge syntax, the template
* is returned as-is.
* @param template - the template to be merged
* @returns the merged result
*/
merge: (text: string) => string
/**
* Merges a template containing merge syntax, e.g. ${uesio/core.uniquekey} in the current context
* with the result coerced in to a string. If the template specified is not a string or does not contain
* any merge syntax, the value returned is the template coerced to a string.
* @param template - the template to be merged
* @returns the merged result as a string
*/
mergeString: (template: Mergeable) => string
/**
* Returns an array of errors that are part of the current context
* @returns Array of error strings
Expand Down
Loading