Skip to content

Commit

Permalink
chore(deps): use @architect/functions built-in types
Browse files Browse the repository at this point in the history
As of @architect/[email protected], types are included in the
package itself and there is no longer a need for
@types/architect__functions.
  • Loading branch information
lpsinger committed Dec 16, 2022
1 parent 90a1634 commit 828b2ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/remix-architect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"dependencies": {
"@architect/functions": "^5.0.2",
"@architect/functions": "^5.2.0",
"@remix-run/node": "1.9.0",
"@types/aws-lambda": "^8.10.82"
},
"devDependencies": {
"@types/architect__functions": "^3.13.6",
"@types/lambda-tester": "^3.6.1",
"lambda-tester": "^4.0.1"
},
Expand Down
10 changes: 7 additions & 3 deletions packages/remix-architect/sessions/arcTableSessionStorage.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as crypto from "crypto";
import type { SessionStorage, SessionIdStorageStrategy } from "@remix-run/node";
import type {
SessionData,
SessionStorage,
SessionIdStorageStrategy,
} from "@remix-run/node";
import { createSessionStorage } from "@remix-run/node";
import arc from "@architect/functions";
import type { ArcTable } from "@architect/functions/tables";
import type { ArcTable } from "@architect/functions/types/tables";

interface ArcTableSessionStorageOptions {
/**
Expand All @@ -15,7 +19,7 @@ interface ArcTableSessionStorageOptions {
* The table used to store sessions, or its name as it appears in your
* project's app.arc file.
*/
table: ArcTable | string;
table: ArcTable<SessionData> | string;

/**
* The name of the DynamoDB attribute used to store the session ID.
Expand Down

0 comments on commit 828b2ee

Please sign in to comment.