File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { validateAASA } from "../aasa.js" ;
2
- import type { CreateVerify , ResultMap , Verify } from "../types.js" ;
2
+ import type { CreateVerify , Verify , VerifyResult } from "../types.js" ;
3
3
import { resolveJson } from "./json.js" ;
4
4
import { match } from "./match.js" ;
5
5
@@ -10,7 +10,7 @@ export const createVerify: CreateVerify = (json) => {
10
10
const aasa = await aasaPromise ;
11
11
if ( ! validateAASA ( aasa ) ) throw new Error ( "Invalid AASA" ) ;
12
12
const details = aasa . applinks ?. details ;
13
- const ret : ResultMap = new Map ( ) ;
13
+ const ret = new Map < string , VerifyResult > ( ) ;
14
14
if ( ! details || details . length === 0 ) return ret ;
15
15
16
16
for ( const detail of details ) {
Original file line number Diff line number Diff line change 1
1
export type JsonOrPath = string | Record < string , unknown > ;
2
2
export type PromiseOr < T > = T | Promise < T > ;
3
- export type ResultMap = Map < string , VerifyResult > ;
3
+ export type ResultMap = ReadonlyMap < string , VerifyResult > ;
4
4
export type VerifyResult = "match" | "block" ;
5
5
6
6
export type CreateVerify = (
You can’t perform that action at this time.
0 commit comments