Web API for Oblique Strategies.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import { generate as coreGenerate } from '@theoryofnekomata/oblique-strategies-core';
-
- export interface CardService {
- generate(cards?: string[]): string
- }
-
- type GenerateInternal = (cards?: string[]) => string
-
- export class CardServiceImpl implements CardService {
- private readonly generateInternal: GenerateInternal;
-
- constructor() {
- this.generateInternal = coreGenerate;
- }
-
- generate(cards?: string[]): string {
- return this.generateInternal(cards);
- }
- }
|