TypeScript Client
The TypeScript client for Windmill allows you to interact with the Windmill platform using TypeScript in Bun / Deno runtime. This client provides a set of functions and utilities to access Windmill resources and perform various operations.
The TypeScript Windmill SDK can be found at https://app.windmill.dev/tsdocs/modules.html
Installation
To use the TypeScript client, you need to have Deno or Bun installed on your system. Follow the installation instructions from the official Deno documentation or Bun documentation.
Once Deno/Bun is installed, you can import the windmill
module directly from the Deno third-party module registry.
- TypeScript (Deno)
- TypeScript (Bun)
import * as wmill from 'npm:windmill-client@1.318.0';
import * as wmill from 'windmill-client';
Usage
The TypeScript client provides several functions that you can use to interact with the Windmill platform. Here's an example of how to use the client to get a resource from Windmill:
- TypeScript (Deno)
- TypeScript (Bun)
import * as wmill from 'npm:windmill-client@1.318.0';
export async function main() {
let x = await wmill.getResource('u/user/name');
}
import * as wmill from 'windmill-client@1.147.3';
export async function main() {
let x = await wmill.getResource('u/user/name');
}
In the example above, the getResource
function is used to retrieve a resource with the path 'u/user/name'
from the Windmill platform. The returned resource can be further processed or used as needed in your application.