diff --git a/src/rx/opaque.ucrx.spec.ts b/src/rx/opaque.ucrx.spec.ts index cfb96f32..508316c4 100644 --- a/src/rx/opaque.ucrx.spec.ts +++ b/src/rx/opaque.ucrx.spec.ts @@ -24,6 +24,12 @@ describe('OpaqueUcrx', () => { }); }); + describe('raw', () => { + it('returns 1', () => { + expect(new OpaqueUcrx().raw('test')).toBe(1); + }); + }); + describe('set', () => { it('has no effect', () => { class TestUcrx extends OpaqueUcrx { diff --git a/src/rx/opaque.ucrx.ts b/src/rx/opaque.ucrx.ts index fd8c7ba0..8009283b 100644 --- a/src/rx/opaque.ucrx.ts +++ b/src/rx/opaque.ucrx.ts @@ -17,6 +17,11 @@ export class OpaqueUcrx extends VoidUcrx implements AllUcrx { // Ignore metadata. } + override raw(value: string): 1; + override raw(_value: string): 1 { + return 1; + } + override nls(): this { return this; } @@ -46,14 +51,9 @@ export interface OpaqueUcrx extends AllUcrx { big(value: bigint): 1; ent(name: string): 1; fmt(format: string, data: readonly UcToken[]): 1; - nls(): this; nul(): 1; num(value: number): 1; - raw(value: string): 1; str(value: string): 1; - for(key: PropertyKey): this; - map(): 1; - and(): 1; end(): void; }