summaryrefslogtreecommitdiffstats
path: root/comm/third_party/asn1js/src/Any.ts
blob: 36db46cc2e55d2b1414ec82fed0bd42e190737c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { EMPTY_STRING } from "./internals/constants";

export interface IAny {
  name: string;
  optional: boolean;
}

export type AnyParams = Partial<IAny>;

export class Any implements IAny {

  public name: string;
  public optional: boolean;

  constructor({
    name = EMPTY_STRING, optional = false,
  }: AnyParams = {}) {
    this.name = name;
    this.optional = optional;
  }

}