Skip to content

Commit 528ecc1

Browse files
fix: imports
1 parent be7c474 commit 528ecc1

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

src/appsscript/sheets/getColumnLetterByPosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getColumnLetterByIndex } from "@/appsscript";
1+
import { getColumnLetterByIndex } from "./getColumnLetterByIndex";
22

33
/**
44
* ## getColumnLetterByPosition

src/appsscript/sheets/isCellGridRange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { nonNil } from "@/base";
1+
import { nonNil } from "../../base";
22
import { GridRange } from "./types";
33

44
/**

src/appsscript/sheets/nonSheet.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { isObject } from "../../base";
2+
3+
/**
4+
* ## isSheet
5+
*
6+
* Checks if the given value is a Google Apps Script [`Sheet`](https://developers.google.com/apps-script/reference/spreadsheet/sheet) object.
7+
*
8+
* @param value - The value to check.
9+
* @returns `true` if the value is a {@link GoogleAppsScript.Spreadsheet.Sheet|Sheet} object, `false` otherwise.
10+
* @see [Class Sheet](https://developers.google.com/apps-script/reference/spreadsheet/sheet)
11+
* @since 1.0.0
12+
* @version 1.0.0
13+
* @environment `Google Apps Script`, `Browser`
14+
*/
15+
export function isSheet(
16+
value: unknown
17+
): value is GoogleAppsScript.Spreadsheet.Sheet {
18+
return isObject(value) && value?.toString() === "Sheet";
19+
}

0 commit comments

Comments
 (0)