File tree Expand file tree Collapse file tree 9 files changed +8
-31
lines changed
Expand file tree Collapse file tree 9 files changed +8
-31
lines changed Original file line number Diff line number Diff line change 11export { magicLink } from './magic-link' ;
2- export { emailVerificationLink } from './magic-link' ;
32export { authRoutes } from './auth-routes' ;
43export { getUserFromSession } from './get-user-from-session' ;
54export { startMagicLinkEmailPubSub } from './start-magic-link-email-pub-sub' ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const VerifyEmailTokenPayload = t.strict({
2222 emailAddress : EmailAddressCodec ,
2323} ) ;
2424
25- export type VerifyEmailTokenPayload = t . TypeOf < typeof VerifyEmailTokenPayload > ;
25+ type VerifyEmailTokenPayload = t . TypeOf < typeof VerifyEmailTokenPayload > ;
2626
2727const createSignedToken =
2828 ( conf : Config ) =>
@@ -63,7 +63,7 @@ const decodeTokenFromQuery =
6363 E . chainW ( ( { token} ) => verifyToken ( token , conf . TOKEN_SECRET ) )
6464 ) ;
6565
66- export const decodeMagicLinkFromQuery =
66+ const decodeMagicLinkFromQuery =
6767 ( logger : Logger , conf : Config ) => ( input : unknown ) =>
6868 pipe (
6969 input ,
@@ -72,7 +72,7 @@ export const decodeMagicLinkFromQuery =
7272 E . map ( payload => payload . user )
7373 ) ;
7474
75- export const decodeEmailVerificationFromQuery =
75+ const decodeEmailVerificationFromQuery =
7676 ( logger : Logger , conf : Config ) => ( input : unknown ) =>
7777 pipe (
7878 input ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const codec = t.strict({
1414 email : EmailAddressCodec ,
1515} ) ;
1616
17- export type AddMemberEmail = t . TypeOf < typeof codec > ;
17+ type AddMemberEmail = t . TypeOf < typeof codec > ;
1818
1919const process : Command < AddMemberEmail > [ 'process' ] = input => {
2020 const states = projectMemberEmailStates ( input . events ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const codec = t.strict({
1212 email : EmailAddressCodec ,
1313} ) ;
1414
15- export type ChangeMemberPrimaryEmail = t . TypeOf < typeof codec > ;
15+ type ChangeMemberPrimaryEmail = t . TypeOf < typeof codec > ;
1616
1717const process : Command < ChangeMemberPrimaryEmail > [ 'process' ] = input => {
1818 const state = projectMemberEmailStates ( input . events ) . get (
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ type EmailDetails = {
66 verified : boolean ;
77} ;
88
9- export type MemberEmailState = {
9+ type MemberEmailState = {
1010 memberNumber : number ;
1111 primaryEmailAddress : EmailAddress ;
1212 emails : Map < EmailAddress , EmailDetails > ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const codec = t.strict({
1212 email : EmailAddressCodec ,
1313} ) ;
1414
15- export type SendMemberEmailVerification = t . TypeOf < typeof codec > ;
15+ type SendMemberEmailVerification = t . TypeOf < typeof codec > ;
1616
1717const process : Command < SendMemberEmailVerification > [ 'process' ] = input => {
1818 const state = projectMemberEmailStates ( input . events ) . get (
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const codec = t.strict({
1010 email : EmailAddressCodec ,
1111} ) ;
1212
13- export type VerifyMemberEmail = t . TypeOf < typeof codec > ;
13+ type VerifyMemberEmail = t . TypeOf < typeof codec > ;
1414
1515const process : Command < VerifyMemberEmail > [ 'process' ] = input => {
1616 const state = projectMemberEmailStates ( input . events ) . get (
Original file line number Diff line number Diff line change @@ -5,4 +5,3 @@ export const members = {
55} ;
66
77export type { FailedLinking } from './failed-linking' ;
8- export type { Member } from './return-types' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments