INNER CODE UNIT · TypeScript

ApiService

kanzitelli/rnn-starter · src/services/api/index.ts:3

export class ApiService implements IService {
  private inited = false;

  counter: CounterApi;

  constructor() {
    this.counter = new CounterApi();
  }

  init = async (): PVoid => {
    if (!this.inited) {
      // your code ...

      this.inited = true;
    }
  };
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…