fix(provider): IPrimaryFieldINfo raise a TypeError