Variable defaultConst

default: {
    parseQuery: ((query, url) => Nullable<parseQueryResult>);
    resolveQueryUrl: ((url?, passphrase?, debug?) => Partial<resolveQueryResult>);
    safelink: typeof default;
} = ...

Type declaration

  • parseQuery: ((query, url) => Nullable<parseQueryResult>)
      • (query, url): Nullable<parseQueryResult>
      • Parse Query URL and Hash

        Parameters

        • query: string

          query key, null = return all objects

        • url: string

          target query, ex: location.href or location.search

        Returns Nullable<parseQueryResult>

  • resolveQueryUrl: ((url?, passphrase?, debug?) => Partial<resolveQueryResult>)
      • (url?, passphrase?, debug?): Partial<resolveQueryResult>
      • Auto resolve url

        • parse base64, aes

        Parameters

        • Optional url: string | URL

          url string or instance, null = window.location.search

          Optional
        • passphrase: string = 'root'

          aes password

        • debug: boolean = false

        Returns Partial<resolveQueryResult>

  • safelink: typeof default