来源:https://stackoverflow.com/questions/64259852/typescript-function-return-type-based-on-optional-parameter-presence-without-usi 标签 typescript overloading typescript-typings optional-parameters