The accessor, with the help of , changes the default tag to 'Maximum' for an instance of .
maximum.class.ts
public get [Symbol.toStringTag](): string {
return 'Maximum';
}
Return type
Example usage
// Example usage.
import { Maximum } from '@angular-package/range';
import { typeOf } from '@angular-package/type';
// Returns "maximum".
typeOf(new Maximum(5));