From e41d7451bfefe484caf13875a2c2dc0759407fe1 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 26 Aug 2015 11:48:09 -0700 Subject: [PATCH] chore: update NAMING.md with TypeScript conventions --- NAMING.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NAMING.md b/NAMING.md index 2b70717d58..20087b7e41 100644 --- a/NAMING.md +++ b/NAMING.md @@ -1,7 +1,8 @@ Naming Conventions in Angular2 --- -In general Angular2 should follow Java naming conventions. +In general Angular2 should follow TypeScript naming conventions. +See: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines Classes: @@ -9,13 +10,13 @@ Classes: - Camel case with first letter upper-case - In general prefer single words. (This is so that when appending `Proto` or `Factory` the class is still reasonable to work with.) - - Should not end with `Impl` or any other word which describes a specific implemenation of an + - Should not end with `Impl` or any other word which describes a specific implementation of an interface. Interfaces: - Follow the same rules as Classes - - Should not have `I` or `Interface` in the name or any other way of identifing it as an interface. + - Should not have `I` or `Interface` in the name or any other way of identifying it as an interface. Methods and functions: