File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
packages/openauth/src/adapter Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ export type PasswordLoginError =
9898 type : "invalid_email"
9999 }
100100
101- export function PasswordAdapter ( config : PasswordConfig ) {
101+ export function PasswordAdapter (
102+ config : PasswordConfig ,
103+ ) : Adapter < { email : string } > {
102104 const hasher = config . hasher ?? ScryptHasher ( )
103105 function generate ( ) {
104106 return generateUnbiasedDigits ( 6 )
@@ -299,7 +301,7 @@ export function PasswordAdapter(config: PasswordConfig) {
299301 return transition ( { type : "start" , redirect : adapter . redirect } )
300302 } )
301303 } ,
302- } satisfies Adapter < { email : string } >
304+ }
303305}
304306
305307import * as jose from "jose"
Original file line number Diff line number Diff line change @@ -464,7 +464,8 @@ function renderType(type: TypeDoc.SomeType): Text {
464464 return `<code class="type">${ type . name } </code>`
465465 } else if (
466466 type . type === "reflection" &&
467- type . declaration . kind === TypeDoc . ReflectionKind . TypeLiteral
467+ type . declaration . kind === TypeDoc . ReflectionKind . TypeLiteral &&
468+ type . declaration . signatures ?. length
468469 ) {
469470 return renderCallbackType ( type )
470471 }
@@ -535,8 +536,7 @@ function renderType(type: TypeDoc.SomeType): Text {
535536 : `${ renderType ( type . elementType ) } <code class="symbol">[]</code>`
536537 }
537538 function renderCallbackType ( type : TypeDoc . ReflectionType ) {
538- // return renderSignatureAsType(type.declaration.signatures![0])
539- return `<code class="primitive">object type</code>`
539+ return renderSignatureAsType ( type . declaration . signatures ! [ 0 ] )
540540 }
541541 function renderTypescriptType ( type : TypeDoc . ReferenceType ) {
542542 // ie. Record<string, string>
You can’t perform that action at this time.
0 commit comments