Skip to content

Commit afb23b7

Browse files
author
Frank
committed
docs: sync
1 parent d5c8d59 commit afb23b7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/openauth/src/adapter/password.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

305307
import * as jose from "jose"

www/generate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)