{"id":20788875,"url":"https://github.com/erkobridee/ts-definitions-common","last_synced_at":"2025-08-21T22:17:12.928Z","repository":{"id":48836511,"uuid":"341601092","full_name":"erkobridee/ts-definitions-common","owner":"erkobridee","description":"useful typescript definitions","archived":false,"fork":false,"pushed_at":"2023-12-15T02:25:44.000Z","size":351,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-21T09:06:59.030Z","etag":null,"topics":["commons","definitions","library","npm-package","rollup","typescript"],"latest_commit_sha":null,"homepage":"http://erkobridee.github.io/ts-definitions-common/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erkobridee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-23T15:33:24.000Z","updated_at":"2023-09-08T18:18:56.000Z","dependencies_parsed_at":"2024-09-25T02:52:02.626Z","dependency_job_id":"bb4dc752-c951-4824-ba35-d1415cdbd539","html_url":"https://github.com/erkobridee/ts-definitions-common","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"6b3e9ccdd22b25a63a4f27bbb782df960783accd"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fts-definitions-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fts-definitions-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fts-definitions-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fts-definitions-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erkobridee","download_url":"https://codeload.github.com/erkobridee/ts-definitions-common/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252555611,"owners_count":21767198,"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":["commons","definitions","library","npm-package","rollup","typescript"],"created_at":"2024-11-17T15:17:40.864Z","updated_at":"2025-05-05T18:44:53.909Z","avatar_url":"https://github.com/erkobridee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/erkobridee/ts-definitions-common/workflows/CD%20-%20publish%20docs%20and%20npm%20package/badge.svg)](https://github.com/erkobridee/ts-definitions-common/)\n\n# typescript common definitions\n\n⚠️\u0026nbsp;\u0026nbsp;This library must be used as a dev dependency on a project that uses [TypeScript](https://www.typescriptlang.org/)\n\n## Instalation\n\n```\nnpm install --save-dev @erkobridee/ts-definitions-common\n```\n\n## Documentation\n\n[@erkobridee/ts-definitions-common](http://erkobridee.github.io/ts-definitions-common/)\n\n## Examples\n\n[codesandbox example](https://codesandbox.io/s/hello-ts-definitions-common-lib-pjrql?file=/src/index.ts)\n\n### TFunction\n\n```javascript\nimport { TFunction } from '@erkobridee/ts-definitions-common';\n\n// or\n\nimport { TFunction } from '@erkobridee/ts-definitions-common/types/functions';\n\n\n\nconst myFunction: TFunction = () =\u003e  undefined;\n\nconst greetings: TFunction\u003c[string], string\u003e =\u003e value =\u003e `greetings ${value}!`;\n```\n\n### TDOMEventHandler\n\n```javascript\nimport { TDOMEventHandler } from '@erkobridee/ts-definitions-common';\n\n// or\n\nimport { TDOMEventHandler } from '@erkobridee/ts-definitions-common/types/dom';\n\nconst clickHandler: TDOMEventHandler = (event) =\u003e console.log(event);\n\nwindow.addEventListener('click', clickHandler);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkobridee%2Fts-definitions-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferkobridee%2Fts-definitions-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkobridee%2Fts-definitions-common/lists"}