Web API for Oblique Strategies.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20 строки
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. }