{"id":"lukadev-0/typed-promise","name":"typed-promise","scope":"lukadev-0","platform":"roblox","description":"Promises with types","version":"4.0.2","latest":"4.0.2","versions":["4.0.0","4.0.1","4.0.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{"evaera/promise":{"version":"^4.0.0","alias":"Promise"}},"integrity":"5a5849fb7ee6b8149d2f93cb5197e339876dc7366092c77d84f8a3a70589e0e4","likes":0,"downloads":0,"install":"forest install lukadev-0/typed-promise","url":"https://forest.dev/p/roblox/lukadev-0/typed-promise","files":"https://api.forest.dev/ai/package/roblox/lukadev-0/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}