@@ -8,11 +8,11 @@ import type { NamingConfig, NamingRule } from '~/utils/naming';
88
99export interface UserRouterConfig {
1010 /**
11- * Customize key names for operations in the router.
11+ * Customize method/ key names for operations in the router.
1212 *
13- * Applied to the final segment of the path (the key name) .
13+ * Applied to the final segment of the path.
1414 */
15- keyName ?: NamingRule ;
15+ methodName ?: NamingRule ;
1616 /**
1717 * How to derive nesting structure from operations.
1818 *
@@ -60,11 +60,11 @@ export interface UserRouterConfig {
6060
6161export interface RouterConfig {
6262 /**
63- * Customize key names for operations in the router.
63+ * Customize method/ key names for operations in the router.
6464 *
65- * Applied to the final segment of the path (the key name) .
65+ * Applied to the final segment of the path.
6666 */
67- keyName : NamingConfig ;
67+ methodName : NamingConfig ;
6868 /**
6969 * How to derive nesting structure from operations.
7070 *
@@ -133,7 +133,7 @@ export type UserConfig = Plugin.Name<'@orpc/contract'> &
133133 * strategy: 'byTags',
134134 * nesting: 'operationId',
135135 * segmentName: { casing: 'camelCase' },
136- * keyName : { casing: 'camelCase' },
136+ * methodName : { casing: 'camelCase' },
137137 * }
138138 */
139139 router ?: OperationsStrategy | UserRouterConfig ;
0 commit comments