Skip to main content
Latest
File

durable objects

Using Durable Objects is fairly simple with darkflare. Create a file ending in .object.ts in the root directory of your project to include it in the JavaScript bundle.

export class MyObject implements DurableObject {
  ...

  constructor(private state: DurableObjectState, private env: darkflare.Environment) {
    ...
  }

  ...
}