* [next-auth], fix an incorrect parameter type in callbacks.session()
* add semicolon
* fix test
* replace Session by Session & GenericObject
* add semicolon
Previously the lint rule was crashing and not reporting the errors:
- `@export` is redundant with `export`
- `@requires`, as documented in jsdoc.app, is redundant with dynamic or
normal imports. The usage here seems to be non-standard, so I'm not
sure what the best fix is.
- `@param` should not have types since those are already specified in
Typescript.
* Updating the Office-js with Addin API and office-js-preview with the acoffice.actions.associate APi.
* fixing the comments
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
* Underscore usage tests - addition, removal, and labeling of tests (#1)
* Removing the EnumerableKey type alias because DT linting is not good at dealing with it between different versions of TypeScript.
(cherry picked from commit abe1df796adc42876da1f163202613c36d90e118)
* Adding comments that describe and anchor tests, changing a few tests slightly, and removing some tests.
* Adding some chain tests.
* Fixing spelling error.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Updating the mixin test to properly augment Underscore types.
* Removing an unnecessary generic type specification.
* Wrapping a comment.
* Referencing DefinitelyTyped/DefinitelyTyped#33479 in more places.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Underscore usage tests - type assertions (#2)
* Adding type assertions to usage tests.
* Minor updates to the bind test.
* Removing comments for chain tests that are already in the chain tests section of the file and updating the chain tests header.
* Breaking a function into multiple lines for better readability.
* Adding a separate toArray test that infers a more interesting type than any[].
* Replacing a movie reference with a more generic example.
* Make indentation more consistent.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Revert "Replacing a movie reference with a more generic example."
This reverts commit 49c0a791cbb6732f48c0f5638a6e9fe90a35d6ff.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Underscore usage tests - reorganization (#3)
* Removing the combinatorial tests label for types.
* Making to the types section of tests.
* Making updates to the collections section of tests.
* Making updates to the arrays section of tests.
* Making updates to the functions section of tests.
* Making updates to the objects section of tests.
* Making updates to the utility section of tests.
* Making updates to the OOP section of tests and adding an OOP header to UnderscoreStatic.
* Making updates to the chaining section of tests.
* Adding a missing word to a sentence.
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Changing "sorting" to "order" when describing sortedIndex
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Switching "values its keys" to "vice versa"
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Removing an inaccurate "no-op" from a description
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Splitting up comments between calling mixin and augmenting type definitions
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* Removing an extra memoize header.
* Changing "TSC" to "TypeScript."
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
Co-authored-by: Julian Gonggrijp <dev@juliangonggrijp.com>
* add missing type for ScrollView maintainVisibleContentPosition on iOS
* add test
* Apply suggestions from code review
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
* put stickHeaderIndices, snapToAlignment, and decelerationRate props under correct scrollview type
Co-authored-by: Vir Desai <virdesai@virs-mbp.lan>
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
While the session data is being fetched,
`useSession` will return `undefined`.
If a session doesn't exist,
`useSession` will return `null`.
The result of `useSession`
is commonly passed to the `Provider` component
(e.g. see the examples at
https://next-auth.js.org/getting-started/client#provider),
and it seems to allow the `undefined` and `null` values
for the `session` prop,
so allow them in the type information, too.
Also corrects some Promise<any> to Promise<void>
The lack of explicit support is generally not problematic except when
used in conjunction with @typescript-eslint/no-misused-promises which
complains when a Promise is provided to a function that doesn't allow
for it.
* Init
* Finish
* Do it like that
* Update types/es6template/index.d.ts
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
* Fix parameterAddresses error in custom-functions-runtime/index.d.ts
* Correct two req set numbers, update error code comments to match UI experience in types/custom-functions-runtime/index.d.ts
* Fix whitespaces per npm lint
* Update divisionByZero error code comment per feedback