Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/functools/implementation

core/functools/implementation

This module provides a bunch of functions and decorators to mark unimplemented functions with the special flag.

import { unimplement, unimplemented } from 'core/functools/implementation';

const foo = unimplement({name: 'foo', alternative: 'bar'}, () => {

});

function bar() {

}

class Baz {
@unimplemented({alternative: 'newMethod'})
oldMethod() {

}

newMethod() {}
}

Index

References

Re-exports InlineWarnOptions
Re-exports WarnAlternative
Re-exports WarnAlternativeOptions
Re-exports WarnContext
Re-exports WarnExprType
Re-exports WarnOptions
Re-exports WarnedFn

Functions

  • unimplement<T>(opts: WarnOptions, fn: T): T extends (...args: infer A) => any ? WarnedFn<A, void> : T
  • unimplement(opts: InlineWarnOptions): void
  • unimplement<T>(fn: T): T extends (...args: infer A) => any ? WarnedFn<A, void> : T
  • unimplemented(target: object, key: string | symbol, descriptor: PropertyDescriptor): void
  • unimplemented(opts?: WarnOptions): Function