Skip to content

Commit 2732ac3

Browse files
authored
Merge pull request #875 from nextcloud-libraries/chore/tsc
chore!: simplified building process as no bundling is needed
2 parents 35773a1 + 8f27770 commit 2732ac3

6 files changed

Lines changed: 179 additions & 2591 deletions

File tree

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @throws if the key can't be found
1111
*/
1212
export function loadState<T>(app: string, key: string, fallback?: T): T {
13-
const elem = <HTMLInputElement>document.querySelector(`#initial-state-${app}-${key}`)
13+
const elem = document.querySelector<HTMLInputElement>(`#initial-state-${app}-${key}`)
1414
if (elem === null) {
1515
if (fallback !== undefined) {
1616
return fallback

0 commit comments

Comments
 (0)