{"id":19002479,"url":"https://github.com/younho9/is-interface","last_synced_at":"2026-05-15T08:02:17.576Z","repository":{"id":57277292,"uuid":"438351334","full_name":"younho9/is-interface","owner":"younho9","description":"Type Guard for interface","archived":false,"fork":false,"pushed_at":"2021-12-14T18:11:15.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T16:34:31.278Z","etag":null,"topics":["guard","guards","ts","type","type-guard","type-guards","types","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/younho9.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":"2021-12-14T18:01:02.000Z","updated_at":"2021-12-14T18:11:18.000Z","dependencies_parsed_at":"2022-08-31T01:00:57.720Z","dependency_job_id":null,"html_url":"https://github.com/younho9/is-interface","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fis-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fis-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fis-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fis-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/younho9","download_url":"https://codeload.github.com/younho9/is-interface/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240027392,"owners_count":19736209,"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":["guard","guards","ts","type","type-guard","type-guards","types","typescript"],"created_at":"2024-11-08T18:15:21.874Z","updated_at":"2026-04-20T12:30:22.554Z","avatar_url":"https://github.com/younho9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-interface\n\n\u003e Type Guard for interface\n\n## Install\n\n```\nnpm install is-interface\n```\n\n## Usage\n\n```ts\nimport is from \"@sindresorhus/is\";\nimport { isInterface } from \"is-interface\";\n\ndeclare const someObject: unknown;\n\nif (\n  isInterface(someObject, {\n    foo: is.string,\n    bar: is.number,\n    baz: is.boolean,\n  })\n) {\n  someObject;\n  // const someObject: {\n  //     foo: string;\n  //     bar: number;\n  //     baz: boolean;\n  // }\n}\n```\n\n## Related\n\n- [is](https://github.com/sindresorhus/is) - Type guards for any situation\n\n## LICENSE\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounho9%2Fis-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyounho9%2Fis-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounho9%2Fis-interface/lists"}