-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Small TypeScript typing issue: resouce.patch() is typed to return a resource, while it can return undefined if nothing was updated.
Expected Behavior
Return type of resource.patch(...) is <resource> | undefined.
Actual Behavior
Return type of resource.patch(...) is <resource>.
Steps To Reproduce
In a TS project, call
import { default as SCIMMY, type Messages } from 'scimmy';
const user = await new SCIMMY.Resources.User().patch(
{} as unknown as Messages.PatchOp,
context,
);and check user type.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation