Skip to content

Commit c449f95

Browse files
committed
style: lint
1 parent 022938d commit c449f95

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

docs/content/1.guide/12.in-page-channel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ import type { InPageChannelProtocol } from 'devframe/in-page-channel'
3737
export const MY_CHANNEL = 'devframes:plugin:my-tool'
3838

3939
export interface MyChannelProtocol extends InPageChannelProtocol {
40-
// implemented by the page script, callable by panels
40+
/** implemented by the page script, callable by panels */
4141
pageScript: {
4242
highlight: (selector: string) => void
4343
measure: (selector: string) => { width: number, height: number }
4444
}
45-
// implemented by panels, callable by the page script
45+
/** implemented by panels, callable by the page script */
4646
panel: {
4747
flash: (message: string) => void
4848
}

packages/devframe/src/in-page-channel/diagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineDiagnostics } from 'devframe/utils/nostics'
22

3-
export const diagnostics = /*#__PURE__*/ defineDiagnostics({
3+
export const diagnostics = /* #__PURE__ */ defineDiagnostics({
44
docsBase: 'https://devfra.me/errors',
55
codes: {
66
DF0077: {

packages/devframe/src/in-page-channel/types.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ export type InPageFunctionDefinition<
134134
RETURN = void,
135135
AS extends RpcArgsSchema | undefined = undefined,
136136
RS extends RpcReturnSchema | undefined = undefined,
137-
>
138-
= InPageFunctionDefinitionForType<
139-
NAME,
140-
TYPE,
141-
InPageFunctionDefinitionHandler<ARGS, RETURN, AS, RS>
142-
> & InPageFunctionDefinitionSchemas<AS, RS>
137+
> = InPageFunctionDefinitionForType<
138+
NAME,
139+
TYPE,
140+
InPageFunctionDefinitionHandler<ARGS, RETURN, AS, RS>
141+
> & InPageFunctionDefinitionSchemas<AS, RS>
143142

144143
/**
145144
* Loosely-typed definition used by the internal function registry.

0 commit comments

Comments
 (0)