{"id":19146295,"url":"https://github.com/signpostmarv/ts-assert","last_synced_at":"2026-07-03T14:33:55.009Z","repository":{"id":232766525,"uuid":"785135005","full_name":"SignpostMarv/ts-assert","owner":"SignpostMarv","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-12T00:03:45.000Z","size":339,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-12T01:06:14.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SignpostMarv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["SignpostMarv"],"ko_fi":"signpostmarv"}},"created_at":"2024-04-11T09:10:34.000Z","updated_at":"2026-04-12T00:03:52.000Z","dependencies_parsed_at":"2024-04-14T10:21:36.614Z","dependency_job_id":"3dc70408-38f1-46e2-a472-166a1b1b3053","html_url":"https://github.com/SignpostMarv/ts-assert","commit_stats":null,"previous_names":["signpostmarv/ts-assert"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/SignpostMarv/ts-assert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2Fts-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2Fts-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2Fts-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2Fts-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SignpostMarv","download_url":"https://codeload.github.com/SignpostMarv/ts-assert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignpostMarv%2Fts-assert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35090436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"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":[],"created_at":"2024-11-09T07:43:47.132Z","updated_at":"2026-07-03T14:33:54.988Z","avatar_url":"https://github.com/SignpostMarv.png","language":"TypeScript","funding_links":["https://github.com/sponsors/SignpostMarv","https://ko-fi.com/signpostmarv"],"categories":[],"sub_categories":[],"readme":"[![Coverage Status](https://coveralls.io/repos/github/SignpostMarv/ts-assert/badge.svg?branch=main)](https://coveralls.io/github/SignpostMarv/ts-assert?branch=main)\n[![Workflow Status](https://github.com/SignpostMarv/ts-assert/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/SignpostMarv/ts-assert/actions/workflows/ci.yml?query=branch%3Amain)\n\n# @signpostmarv/ts-assert\n\nCode-generated assertions for TypeScript type guarding functions.\n\n# Usage\n\n```ts\nimport {describe, it} from 'node:test';\nimport assert from 'node:assert/strict';\nimport ts_assert from '@signpostmarv/ts-assert';\nimport ts from 'typescript';\n\nvoid describe('isIdentifier', () =\u003e {\n\tvoid it('throws', () =\u003e {\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isIdentifier(ts.factory.createStringLiteral('foo'))\n\t\t);\n\t});\n});\n\nvoid describe('isEmptyBindingPattern', () =\u003e {\n\tvoid it('throws', () =\u003e {\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isEmptyBindingPattern(ts.factory.createIdentifier('foo'))\n\t\t);\n\t});\n});\n\nvoid describe('isBooleanLiteral', () =\u003e {\n\tvoid it('throws', () =\u003e {\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isBooleanLiteral(\n\t\t\t\tts.factory.createStringLiteral('foo'),\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isBooleanLiteral(ts.factory.createFalse(), true)\n\t\t);\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isBooleanLiteral(ts.factory.createTrue(), false)\n\t\t);\n\t});\n\tvoid it('does not throw', () =\u003e {\n\t\tassert.doesNotThrow(() =\u003e\n\t\t\tts_assert.isBooleanLiteral(ts.factory.createTrue(), true)\n\t\t);\n\t\tassert.doesNotThrow(() =\u003e\n\t\t\tts_assert.isBooleanLiteral(ts.factory.createFalse(), false)\n\t\t);\n\t});\n});\n\nvoid describe('isTokenWithExpectedKind', () =\u003e {\n\tvoid it('throws', () =\u003e {\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isTokenWithExpectedKind(\n\t\t\t\tts.factory.createStringLiteral('foo'),\n\t\t\t\tts.SyntaxKind.StringKeyword\n\t\t\t)\n\t\t);\n\t\tassert.throws(() =\u003e\n\t\t\tts_assert.isTokenWithExpectedKind(\n\t\t\t\tts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),\n\t\t\t\tts.SyntaxKind.NumberKeyword\n\t\t\t)\n\t\t);\n\t});\n\tvoid it('does not throw', () =\u003e {\n\t\tassert.doesNotThrow(() =\u003e\n\t\t\tts_assert.isTokenWithExpectedKind(\n\t\t\t\tts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),\n\t\t\t\tts.SyntaxKind.StringKeyword\n\t\t\t)\n\t\t);\n\t});\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignpostmarv%2Fts-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignpostmarv%2Fts-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignpostmarv%2Fts-assert/lists"}