sinProject-Inc/talk

View on GitHub
src/lib/general/valid_key.ts

Summary

Maintainability
A
0 mins
Test Coverage
export class ValidKey {
    private readonly _key: string

    public constructor(key: string) {
        if (!key) throw new Error('Key is required')

        this._key = key
    }

    public get key(): string {
        return this._key
    }
}