{"_id":"@types/toposort","_rev":"2804344","name":"@types/toposort","description":"TypeScript definitions for toposort","dist-tags":{"latest":"2.0.3","ts2.0":"2.0.2","ts2.1":"2.0.2","ts2.2":"2.0.2","ts2.3":"2.0.3","ts2.4":"2.0.3","ts2.5":"2.0.3","ts2.6":"2.0.3","ts2.7":"2.0.3","ts2.8":"2.0.3","ts2.9":"2.0.3","ts3.0":"2.0.3","ts3.1":"2.0.3","ts3.2":"2.0.3","ts3.3":"2.0.3","ts3.4":"2.0.3","ts3.5":"2.0.3","ts3.6":"2.0.3","ts3.7":"2.0.3","ts3.8":"2.0.3","ts3.9":"2.0.3","ts4.0":"2.0.3","ts4.1":"2.0.3","ts4.2":"2.0.3","ts4.3":"2.0.3","ts4.4":"2.0.3","ts4.5":"2.0.3","ts4.6":"2.0.3","ts4.7":"2.0.3","ts4.8":"2.0.3","ts4.9":"2.0.3"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:46.000Z","created":"2018-08-27T23:02:34.453Z","2.0.3":"2019-08-12T17:20:26.143Z","2.0.2":"2019-08-05T17:24:16.037Z","2.0.1":"2018-08-29T01:21:42.118Z","2.0.0":"2018-08-27T23:02:34.453Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/toposort"},"versions":{"2.0.3":{"name":"@types/toposort","version":"2.0.3","description":"TypeScript definitions for toposort","license":"MIT","contributors":[{"name":"Daniel Byrne","url":"https://github.com/danwbyrne","githubUsername":"danwbyrne"},{"name":"Prokop Simek","url":"https://github.com/prokopsimek","githubUsername":"prokopsimek"},{"name":"Emily Marigold Klassen","url":"https://github.com/forivall","githubUsername":"forivall"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/toposort"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"eb5722eb7ff3977b255432abf03946d89084a35b08d18dbd7738334cc426e183","typeScriptVersion":"2.3","_id":"@types/toposort@2.0.3","dist":{"shasum":"dc490842b77c3e910c8d727ff0bdb2fb124cb41b","size":1977,"noattachment":false,"key":"/@types/toposort/-/@types/toposort-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/toposort/download/@types/toposort-2.0.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toposort_2.0.3_1565630426024_0.3348467747118098"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:47:49.643Z","publish_time":1565630426143,"_cnpm_publish_time":1565630426143},"2.0.2":{"name":"@types/toposort","version":"2.0.2","description":"TypeScript definitions for toposort","license":"MIT","contributors":[{"name":"Daniel Byrne","url":"https://github.com/danwbyrne","githubUsername":"danwbyrne"},{"name":"Prokop Simek","url":"https://github.com/prokopsimek","githubUsername":"prokopsimek"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/toposort"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"317b75e3872d1ab4303c70a3d44d6647a470b36ee4504a98a25b7eefff4ee8d0","typeScriptVersion":"2.0","_id":"@types/toposort@2.0.2","dist":{"shasum":"5c0ee2b67ce62d6dc92ec860cb3d5317de3adbb7","size":1559,"noattachment":false,"key":"/@types/toposort/-/@types/toposort-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/toposort/download/@types/toposort-2.0.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toposort_2.0.2_1565025855685_0.25792229947529943"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:47:49.537Z","publish_time":1565025856037,"_cnpm_publish_time":1565025856037},"2.0.1":{"name":"@types/toposort","version":"2.0.1","description":"TypeScript definitions for toposort","license":"MIT","contributors":[{"name":"Daniel Byrne","url":"https://github.com/danwbyrne","githubUsername":"danwbyrne"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"4af2a64f364925970ecab303296b0cef19aee470426169b67d0ec3d187a9fdca","typeScriptVersion":"2.0","_id":"@types/toposort@2.0.1","dist":{"shasum":"d950563ae45147fc28866fe66f3712e9b2a90f88","size":1498,"noattachment":false,"key":"/@types/toposort/-/@types/toposort-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/toposort/download/@types/toposort-2.0.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toposort_2.0.1_1535505701992_0.8036096564544775"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:47:47.840Z","publish_time":1535505702118,"_cnpm_publish_time":1535505702118},"2.0.0":{"name":"@types/toposort","version":"2.0.0","description":"TypeScript definitions for toposort","license":"MIT","contributors":[{"name":"Daniel Byrne","url":"https://github.com/danwbyrne","githubUsername":"danwbyrne"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"06f41047e92b3955c213e528891af3e2d935ee2ef96ea46930c8fce02ddfe266","typeScriptVersion":"2.0","_id":"@types/toposort@2.0.0","dist":{"shasum":"6068d67f68fac35d82a512491a159852799c6a9a","size":1495,"noattachment":false,"key":"/@types/toposort/-/@types/toposort-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/toposort/download/@types/toposort-2.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toposort_2.0.0_1535410954382_0.2810788994872624"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:47:46.217Z","publish_time":1535410954453,"_cnpm_publish_time":1535410954453}},"readme":"# Installation\r\n> `npm install --save @types/toposort`\r\n\r\n# Summary\r\nThis package contains type definitions for toposort (https://github.com/marcelklehr/toposort).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toposort.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toposort/index.d.ts)\r\n````ts\r\n/**\n * @param edges An array of directed edges describing a graph. An edge looks\n *              like this: `[node1, node2]` (vertices needn't be strings but can\n *              be of any type).\n * @returns a list of vertices, sorted from \"start\" to \"end\"\n * @throws if there are any cycles in the graph\n */\ndeclare function toposort<T = string>(edges: ReadonlyArray<[T, T | undefined]>): T[];\ndeclare namespace toposort {\n    /**\n     * This is a convenience method that allows you to define nodes that may or\n     * may not be connected to any other nodes. The ordering of unconnected\n     * nodes is not defined.\n     * @param nodes An array of nodes\n     * @param edges An array of directed edges. You don't need to mention all\n     *              `nodes` here.\n     * @returns a list of vertices, sorted from \"start\" to \"end\"\n     * @throws if there are any cycles in the graph\n     */\n    function array<T = string>(\n        nodes: readonly T[],\n        edges: ReadonlyArray<[T, T | undefined]>,\n    ): T[];\n}\nexport = toposort;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 20 Nov 2023 23:36:24 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Daniel Byrne](https://github.com/danwbyrne), [Prokop Simek](https://github.com/prokopsimek), and [Emily Marigold Klassen](https://github.com/forivall).\r\n","_attachments":{},"license":"MIT"}