@turnkey/sdk-types 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @turnkey/sdk-types
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#650](https://github.com/tkhq/sdk/pull/650) [`27fe590`](https://github.com/tkhq/sdk/commit/27fe590cdc3eb6a8cde093eeefda2ee1cdc79412) Author [@turnekybc](https://github.com/turnekybc) - Update @turnkey/sdk-types readme and install dependency in packages with common types
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -0,0 +1,43 @@
1
+ # @turnkey/sdk-types
2
+
3
+ [![npm](https://img.shields.io/npm/v/@turnkey/sdk-types?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/sdk-types)
4
+
5
+ ## Getting started
6
+
7
+ A package for common and reusable Turnkey Types which can be used for consistent typing across packages.
8
+
9
+ ### Installation
10
+
11
+ #### npm
12
+
13
+ ```bash
14
+ $ npm install @turnkey/sdk-types
15
+ ```
16
+
17
+ #### Yarn
18
+
19
+ ```bash
20
+ $ yarn add @turnkey/sdk-types
21
+ ```
22
+
23
+ #### pnpm
24
+
25
+ ```bash
26
+ $ pnpm add @turnkey/sdk-types
27
+ ```
28
+
29
+ ### Usage
30
+
31
+ ```js
32
+ import { useTurnkey } from "@turnkey/sdk-react";
33
+ import { SessionType } from "@turnkey/sdk-types";
34
+
35
+ export default function AuthComponent() {
36
+ const { passkeyClient } = useTurnkey();
37
+
38
+ await passkeyClient?.loginWithPasskey({
39
+ sessionType: SessionType.READ_WRITE,
40
+ ...
41
+ });
42
+ }
43
+ ```
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@turnkey/sdk-types",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "dist/**/*",
8
- "CHANGELOG.md"
8
+ "CHANGELOG.md",
9
+ "README.md"
9
10
  ],
10
11
  "module": "./dist/index.mjs",
11
12
  "exports": {