Skip to content

Commit

Permalink
feat: added boolean field
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhvam committed Feb 7, 2025
1 parent 7750518 commit d74baa1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
24 changes: 15 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msw-sp",
"version": "1.12.0",
"version": "1.13.0",
"description": "MSW handlers for mocking SharePoint REST api.",
"main": "lib/index.js",
"engines": {
Expand Down
7 changes: 6 additions & 1 deletion src/types/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ type LookupField = {
lookupList: string;
}

type BooleanField = {
typeAsString: "Boolean";
}

export type Field = {
title: string;
description?: string;
Expand All @@ -42,5 +46,6 @@ export type Field = {
NumberField |
DateTimeField |
CounterField |
NoteField);
NoteField |
BooleanField);

0 comments on commit d74baa1

Please sign in to comment.