Skip to content

Commit

Permalink
feat: add regex patterns to program file docs
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Dec 28, 2024
1 parent 75e7bf2 commit b340668
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ declare global {
interface ProgramFile {
/**
* Globally unique program ID, special characters are not allowed
*
* Must match the pattern `/^[a-zA-z0-9_]+$/`
*/
id: string;

Expand All @@ -325,6 +327,8 @@ declare global {

/**
* The scope (location) to which the script belongs. Leave blank for global scope
*
* Must match the pattern `/^[a-zA-z0-9_\.]+$/`
*/
scope?: string;

Expand Down

0 comments on commit b340668

Please sign in to comment.