Skip to content

feat: adding type definitions for basic clay interfaces#20

Open
flamerohr wants to merge 5 commits intopebble-dev:mainfrom
flamerohr:feat/types-def
Open

feat: adding type definitions for basic clay interfaces#20
flamerohr wants to merge 5 commits intopebble-dev:mainfrom
flamerohr:feat/types-def

Conversation

@flamerohr
Copy link

Hello, this is an attempt to add type definitions to Clay, focused mostly on the config json that defines how to build the form.

The way I've found to use the types is to create a config.js file with content:

/**
 * @type {import('@rebble/clay').Config}
 */
module.exports = [
  {
    type: "heading",
    defaultValue: "My heading",
  }
];
Screenshot 2026-03-02 at 3 44 39 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant