hashTag: typeof hashTag = ...

A symbol that is used to define a custom hash method for a certain class or object.

If this tag is present on an object, hash will call it with a callback that you can use to add your fields to the resulting hash.

import { hashTag, Hasher } from "scl";

class Person {

constructor(
public fullName: string,
public email: string,
) {

}

[hashTag](h: Hasher): void {
h(this.fullName);
}

}

Hasher