import { Refinement } from "@siteimprove/alfa-refinement" ; import { Hash } from "./hash" ; const { isFunction , isObject } = Refinement ; public export interface Hashable { hash ( hash ) : void ; } public export namespace Hashable { export function isHashable ( value ) { return isObject ( value ) && isFunction ( value . hash ) ; } }