Web API for Oblique Strategies.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

20 righe
473 B

  1. import { generate as coreGenerate } from '@theoryofnekomata/oblique-strategies-core';
  2. export interface CardService {
  3. generate(cards?: string[]): string
  4. }
  5. type GenerateInternal = (cards?: string[]) => string
  6. export class CardServiceImpl implements CardService {
  7. private readonly generateInternal: GenerateInternal;
  8. constructor() {
  9. this.generateInternal = coreGenerate;
  10. }
  11. generate(cards?: string[]): string {
  12. return this.generateInternal(cards);
  13. }
  14. }