{"id":20401109,"url":"https://github.com/sohanemon/one2dos","last_synced_at":"2026-05-04T09:34:13.285Z","repository":{"id":151083459,"uuid":"582500187","full_name":"sohanemon/one2dos","owner":"sohanemon","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T13:27:13.000Z","size":538,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T03:51:29.457Z","etag":null,"topics":["chakra-ui","firebase","firestore","nextjs","react","typescript"],"latest_commit_sha":null,"homepage":"https://2dos.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sohanemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-27T03:07:36.000Z","updated_at":"2023-01-15T16:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0ce95f2-4018-4e1f-a20c-c912844c158e","html_url":"https://github.com/sohanemon/one2dos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sohanemon/one2dos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fone2dos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fone2dos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fone2dos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fone2dos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohanemon","download_url":"https://codeload.github.com/sohanemon/one2dos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohanemon%2Fone2dos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chakra-ui","firebase","firestore","nextjs","react","typescript"],"created_at":"2024-11-15T04:47:52.804Z","updated_at":"2026-05-04T09:34:13.269Z","avatar_url":"https://github.com/sohanemon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Type.d.ts\n\nCreate `type.d.ts` and put all type definition there to get awesome typing suggestion without importing or exporting any type\n\nexample\n\n```js\ntype auth = {\n  user: User | null,\n  googleLogin?: Function,\n};\n```\n\n## Firebase User Type For Typescript\n\n```js\ntype User = {\n  uid: string,\n  email: string,\n  emailVerified: boolean,\n  displayName: string,\n  isAnonymous: boolean,\n  photoURL: string,\n  providerData: [\n    {\n      providerId: string,\n      uid: string,\n      displayName: string,\n      email: string,\n      phoneNumber: null,\n      photoURL: string,\n    }\n  ],\n  stsTokenManager: {\n    refreshToken: string,\n    accessToken: string,\n    expirationTime: number,\n  },\n  createdAt: string,\n  lastLoginAt: string,\n  apiKey: string,\n  appName: string,\n};\n```\n\n## ! in Typescript\n\n`!` is used as non-null assertion and definite assignment assertion\n\n```js\nlet s = e!.name;  // Assert that e is non-null and access name\n```\n\n```js\nlet x!: number; // Assert that x is defined\n\nconsole.log(x + x); // No error!\n```\n\n## Using `as` in Typescript\n\n```js\n\u003cMenuItem\n  onClick={(e) =\u003e\n    setPriority((e.target as HTMLElement).innerText)\n  }\n\u003e\n  Low\n\u003c/MenuItem\u003e\n```\n\nWhere it is\n\n```js\n\n(e.target as HTMLElement).innerText\n// is equal to\nlet x = e.target as HTMLElement\nx.innerText\n```\n\nit asserts the `target` as a `HTMLElement` type\n\n## Awesome refetching way! No SWR, React Query\n\n```js\nconst [seed, setSeed] = useState(1);\nconst reset = () =\u003e {\n  setSeed(Math.random());\n}\n\u003cComponent key={seed}/\u003e\n\u003cButton onClick={reset}\u003eReset\u003c/Button\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fone2dos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohanemon%2Fone2dos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohanemon%2Fone2dos/lists"}