Function
toStateStat
(input: {
type: StateEntryType;
size: number;
mtime: Date;
mode?: number;
})
Source from the content-addressed store, hash-verified
| 108 | } |
| 109 | |
| 110 | export function toStateStat(input: { |
| 111 | type: StateEntryType; |
| 112 | size: number; |
| 113 | mtime: Date; |
| 114 | mode?: number; |
| 115 | }): StateStat { |
| 116 | return { |
| 117 | type: input.type, |
| 118 | size: input.size, |
| 119 | mtime: input.mtime, |
| 120 | mode: input.mode |
| 121 | }; |
| 122 | } |
| 123 | |
| 124 | export function parseJsonFileContent(content: string, path: string): unknown { |
| 125 | try { |
Tested by
no test coverage detected