Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TS types #23

Merged
merged 7 commits into from
Apr 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make the linter happy
Brian Muller committed Apr 25, 2024

Verified

This commit was signed with the committer’s verified signature.
shlomi-noach Shlomi Noach
commit 98791431060f6bcc3605f3aa7e851946e2c72ffa
2 changes: 1 addition & 1 deletion packages/react/src/index.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import React, { PropsWithChildren, createContext, useContext, useEffect, useStat
import ButtonImg from './medium-passport-button.svg'

import { loadParallel } from '@parallelmarkets/vanilla'
import type { AuthCallbackResult, Parallel, ProfileApiResponse } from '@parallelmarkets/vanilla'
import type { AuthCallbackResult, ProfileApiResponse } from '@parallelmarkets/vanilla'

type LoadParallelPromise = ReturnType<typeof loadParallel>
type LoadParallelResult = Awaited<ReturnType<typeof loadParallel>>
4 changes: 2 additions & 2 deletions packages/vanilla/src/__tests__/index-test.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ global.window.Parallel = {
on_init?.()
},
getLoginStatus: () => null,
getProfile: () => null,
getProfile: () => null,
login: () => null,
logout: () => null,
unsubscribe: () => null,
@@ -25,7 +25,7 @@ global.window.Parallel = {
_appendLoadContext: () => null,
get _config() {
return window.config
}
},
}

test('Configuration is set correctly', async () => {