Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit a1f8fc8

Browse files
committed
wip(types): fix some ts erros (see #88)
1 parent 1049c08 commit a1f8fc8

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

lib/integrations/apis/clickup/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { clickup } from "./mod.ts";
33

44
Deno.test("[apis] clickup", async (t) => {
55
const api = clickup({
6-
personalApiKey: Deno.env.get("CLICKUP_PERSONAL_API_KEY"),
6+
personalApiKey: Deno.env.get("CLICKUP_PERSONAL_API_KEY")!,
77
});
88

99
await t.step("find lists", async () => {

lib/integrations/apis/facturama/mod.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { facturama } from "./mod.ts";
33

44
Deno.test("[apis] facturama", async (t) => {
55
const api = facturama({
6-
username: Deno.env.get("FACTURAMA_USERNAME"),
7-
password: Deno.env.get("FACTURAMA_PASSWORD"),
6+
username: Deno.env.get("FACTURAMA_USERNAME")!,
7+
password: Deno.env.get("FACTURAMA_PASSWORD")!,
88
});
99

1010
await t.step("get product", async () => {

lib/integrations/apis/fathomanalytics/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fathomanalytics } from "./mod.ts";
33

44
Deno.test("[apis] fathomanalytics", async (t) => {
55
const api = fathomanalytics({
6-
apiKey: Deno.env.get("FATHOMANALYTICS_API_KEY"),
6+
apiKey: Deno.env.get("FATHOMANALYTICS_API_KEY")!,
77
});
88

99
await t.step("find sites", async () => {

lib/integrations/apis/googlesheets/mod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type Result = {
5959
values: string[][];
6060
};
6161

62-
const resultToRows = (result: Result, headers?: string[]) => {
62+
export const resultToRows = (result: Result, headers?: string[]) => {
6363
let keys: string[];
6464
let rows: Result["values"];
6565
if (headers) {

lib/integrations/apis/holded/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { holded } from "./mod.ts";
33

44
Deno.test("[apis] holded", async (t) => {
55
const api = holded({
6-
apiKey: Deno.env.get("HOLDED_API_KEY"),
6+
apiKey: Deno.env.get("HOLDED_API_KEY")!,
77
});
88

99
await t.step("find contacts", async () => {

lib/integrations/apis/mailchimpmarketing/mod.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { mailchimpmarketing } from "./mod.ts";
33

44
Deno.test("[apis] mailchimpmarketing", async (t) => {
55
const api = mailchimpmarketing({
6-
marketingApiKey: Deno.env.get("MAILCHIMP_MARKETING_API_KEY"),
7-
dataCenter: Deno.env.get("MAILCHIMP_DATA_CENTER"),
6+
marketingApiKey: Deno.env.get("MAILCHIMP_MARKETING_API_KEY")!,
7+
dataCenter: Deno.env.get("MAILCHIMP_DATA_CENTER")!,
88
});
99

1010
await t.step("find campaigns", async () => {

lib/integrations/apis/medium/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { medium } from "./mod.ts";
33

44
Deno.test("[apis] medium", async (t) => {
55
const api = medium({
6-
accessToken: Deno.env.get("MEDIUM_ACCESS_TOKEN"),
6+
accessToken: Deno.env.get("MEDIUM_ACCESS_TOKEN")!,
77
});
88

99
await t.step("find publications", async () => {

lib/integrations/apis/mongodbatlasdata/mod.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { mongodbatlasdata } from "./mod.ts";
33

44
Deno.test("[apis] mongodbatlasdata", async (t) => {
55
const api = mongodbatlasdata({
6-
apiKey: Deno.env.get("MONGODBATLASDATA_API_KEY"),
7-
dataApiAppId: Deno.env.get("MONGODBATLASDATA_DATA_API_APP_ID"),
6+
apiKey: Deno.env.get("MONGODBATLASDATA_API_KEY")!,
7+
dataApiAppId: Deno.env.get("MONGODBATLASDATA_DATA_API_APP_ID")!,
88
});
99

1010
await t.step("find documents", async () => {

lib/integrations/apis/openai/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { openai } from "./mod.ts";
44

55
Deno.test("[apis] openai", async (t) => {
66
const api = openai({
7-
apiKey: Deno.env.get("OPENAI_API_KEY"),
7+
apiKey: Deno.env.get("OPENAI_API_KEY")!,
88
});
99

1010
await t.step("create chat completion", async () => {

lib/integrations/apis/pandadoc/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { pandadoc } from "./mod.ts";
33

44
Deno.test("[apis] pandadoc", async (t) => {
55
const api = pandadoc({
6-
apiKey: Deno.env.get("PANDADOC_API_KEY"),
6+
apiKey: Deno.env.get("PANDADOC_API_KEY")!,
77
});
88

99
await t.step("find documents", async () => {

lib/integrations/apis/sendgrid/mod.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { sendgrid } from "./mod.ts";
33

44
Deno.test("[apis] sendgrid", async (t) => {
55
const api = sendgrid({
6-
apiKey: Deno.env.get("SENDGRID_API_KEY"),
6+
apiKey: Deno.env.get("SENDGRID_API_KEY")!,
77
});
88

99
await t.step("find lists", async () => {

lib/integrations/apis/whatsappbusiness/mod.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { whatsappbusiness } from "./mod.ts";
33

44
Deno.test("[apis] whatsappbusiness", async (t) => {
55
const api = whatsappbusiness({
6-
businessAccountId: Deno.env.get("WHATSAPPBUSINESS_BUSINESS_ACCOUNT_ID"),
7-
permanentToken: Deno.env.get("WHATSAPPBUSINESS_PERMANENT_TOKEN"),
6+
businessAccountId: Deno.env.get("WHATSAPPBUSINESS_BUSINESS_ACCOUNT_ID")!,
7+
permanentToken: Deno.env.get("WHATSAPPBUSINESS_PERMANENT_TOKEN")!,
88
});
99

1010
await t.step("get business profile", async () => {

lib/integrations/apis/wix/mod.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { wix } from "./mod.ts";
33

44
Deno.test("[apis] wix", async (t) => {
55
const api = wix({
6-
accountId: Deno.env.get("WIX_ACCOUNT_ID"),
7-
siteId: Deno.env.get("WIX_SITE_ID"),
8-
apiKey: Deno.env.get("WIX_API_KEY"),
6+
accountId: Deno.env.get("WIX_ACCOUNT_ID")!,
7+
siteId: Deno.env.get("WIX_SITE_ID")!,
8+
apiKey: Deno.env.get("WIX_API_KEY")!,
99
});
1010

1111
await t.step("get site properties", async () => {

0 commit comments

Comments
 (0)