We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples from where?
The text was updated successfully, but these errors were encountered:
@anthonyjoeseph this is good one https://codesandbox.io/s/spectacles-ts-experiments-krc1x9?file=/src/experiments.ts
but from tests is better
Sorry, something went wrong.
@anthonyjoeseph im ready to contribute jsdoc. what kind of format?
Oh wow that would be great! I think something modelled after fp-ts
/** * Sets a value at a particular path * * If a value at the path doesn't exist, return O.none, otherwise wrap the result in O.some * * @example * import { pipe } from 'fp-ts/function' * import * as O from 'fp-ts/Option' * import { setOption } from 'spectacles-ts/set' * * type Data = { a?: { b: number } } * * assert.strictEqual( * pipe( * { a: { b: 123 } } as Data, * setOption('a.b', 456) * ), * O.some({ a: { b: 456 } }) * ) * assert.strictEqual( * pipe( * {} as Data, * setOption('a?.b', 456) * ), * 0.none * ) * * @since 1.0.7 */
We should probably use docs-ts at some point to make sure that the examples actually compile
No branches or pull requests
examples from where?
The text was updated successfully, but these errors were encountered: