@typed/content-hash
Version:
Content hash a directory of HTML/JS/CSS files and other static assets
16 lines (13 loc) • 383 B
text/typescript
import * as number from '@typed/fp/number'
import * as string from '@typed/fp/string'
import { struct } from 'fp-ts/Eq'
import { Dependency, Position } from '../domain/model'
export const dependencyEq = struct<Dependency>({
specifier: string.Eq,
filePath: string.Eq,
fileExtension: string.Eq,
position: struct<Position>({
start: number.Eq,
end: number.Eq,
}),
})