Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda9fdd2

Browse files
fix(types): bring back Field.rule to .d.ts
1 parenta2ccda1 commitda9fdd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/field.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ function Field(name, id, type, rule, extend, options, comment) {
7878
if(extend!==undefined&&!util.isString(extend))
7979
throwTypeError("extend must be a string");
8080

81+
if(rule==="proto3_optional"){
82+
rule="optional";
83+
}
8184
/**
8285
* Field rule, if any.
8386
*@type {string|undefined}
8487
*/
85-
if(rule==="proto3_optional"){
86-
rule="optional";
87-
}
8888
this.rule=rule&&rule!=="optional" ?rule :undefined;// toJSON
8989

9090
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp