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. }