{"id":18849072,"url":"https://github.com/gnlow/lazywrap","last_synced_at":"2026-02-02T16:30:16.132Z","repository":{"id":41522562,"uuid":"325146921","full_name":"gnlow/lazywrap","owner":"gnlow","description":"Lazy-load async properties","archived":false,"fork":false,"pushed_at":"2022-07-03T12:41:25.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T14:48:47.694Z","etag":null,"topics":["async","decorators","lazy","lazy-loading","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-29T00:26:40.000Z","updated_at":"2022-07-03T13:47:10.000Z","dependencies_parsed_at":"2022-09-21T11:52:55.932Z","dependency_job_id":null,"html_url":"https://github.com/gnlow/lazywrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Flazywrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Flazywrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Flazywrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Flazywrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnlow","download_url":"https://codeload.github.com/gnlow/lazywrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786206,"owners_count":19696770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","decorators","lazy","lazy-loading","typescript"],"created_at":"2024-11-08T03:18:17.854Z","updated_at":"2026-02-02T16:30:16.068Z","avatar_url":"https://github.com/gnlow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lazywrap\nLazy-load async properties\n## Use\n```ts\nimport {Lw, LwInterface} from \"https://denopkg.com/gnlow/lazywrap@main/mod.ts\"\n\nclass User {\n    @Lw(\"load\") declare id: Lw\u003cnumber\u003e\n    async log() {\n        console.log(\"id\", await this.id)\n    }\n    async load() {\n        await new Promise(r =\u003e setTimeout(r, 1000))\n        this.id = Math.random()\n    }\n}\nconst user1 = new User\nawait user1.log()\n\n\ninterface Music {\n    id: number\n    title?: string\n}\ntype LwMusic = LwInterface\u003cMusic\u003e\n// Apply `Lw` to optional properties\n/*\n    {\n        id: number\n        title: Lw\u003cstring\u003e\n    }\n*/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Flazywrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnlow%2Flazywrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Flazywrap/lists"}