{"id":"arxkdev/typed-promise","name":"typed-promise","scope":"arxkdev","platform":"roblox","description":"Promises with types","version":"4.0.2","latest":"4.0.2","versions":["4.0.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"evaera/promise":{"version":"^4.0.0","alias":"Promise"}},"integrity":"d203e4c4d8242c40b6b5699f8e02d91849d4bf8256e7c4350ab1113be0085eb8","likes":0,"downloads":1,"install":"forest install arxkdev/typed-promise","url":"https://forest.dev/p/roblox/arxkdev/typed-promise","files":"https://api.forest.dev/ai/package/roblox/arxkdev/typed-promise/files","readme":"# RbxTypedPromise\n\nThis package wraps around [roblox-lua-promise](https://github.com/evaera/roblox-lua-promise) and\nadds types.\n\n## Installation\n\nYou can install this package on Wally.\n\n```toml\n[dependencies]\nPromise = \"lukadev-0/typed-promise@4.0.2\"\n```\n\n### wally-package-types\n\nTo use the types provided by the package, you must use the [wally-package-types](https://github.com/JohnnyMorganz/wally-package-types)\ntool after running `wally install`. You can install it using [Aftman](https://github.com/LPGHatGuy/aftman).\n\n## Types\n\nDue to certain limitations ([which might be loosened in the future](https://github.com/Roblox/luau/pull/86))\nthis package cannot provide full typings. Therefore, there are two types: `TypedPromise<T...>` and `Promise`.\n\nAny method of Promise that returns a Promise, such as `:andThen` or `:catch` will return the `Promise` type\nbecause of Luau limitations.\n\nThe constructors, like `Promise.new` or `Promise.try` are strictly typed and return a `TypedPromise<T...>`.\n\nMake sure you run [wally-package-types](#wally-package-types) in order to access the types!\n","readmeTruncated":false}