acuminous/x-pool

View on GitHub
examples/TypeScript/ExampleFactory.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Factory } from "../../index.js";

let i = 1;

export default class ExampleFactory implements Factory<string> {
  async create() {
    return `Resource ${i++}`;
  }

  async validate(resource: string) {
  }

  async destroy(resource: string) {
  }
}